Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-02-05 21:00:39

placenamehere
Archived Plugin Author
Registered: 2004-11-21
Posts: 88
Website

Add rel="bookmark" ability to <txp:permlink></txp:permlink>

Low priority, but simply implemented request:

Part of the hatom spec require the perm link to an article be designated by rel=“bookmark” in the link. rel=“bookmark” is also gaining common usage elswhere. With the current txp:permlink tag — when used as a container — there isn’t a facility to add this.

using <code><a href=”<txp:permlink />” rel=“bookmark”>linktext</a></code> is a soltution, but it would be nice to see this tag more aware of its normal uses


Site: placenamehere.com
Microformat Plugin: pnh_mf

Offline

#2 2006-02-12 03:03:56

placenamehere
Archived Plugin Author
Registered: 2004-11-21
Posts: 88
Website

Re: Add rel="bookmark" ability to <txp:permlink></txp:permlink>

The more i think about this, the more I think that maybe the direcion to take is allow arbitrary (or unknown) attibutes to get passed through to the outputted tag in cases like this.

it would allow for all values of the rel attribute to be added where wanted (bookmark, tag, etc) but it would also allow things like titles or classes or ids to be passed through on a somewhat arbitrary and as needed basis.

so the ability to do something like this:

<code><txp:category1 link=“1” rel=“tag” /> </code>

instead of this:

<code><a href=”/?c=<txp:category1 />” rel=“tag”><txp:category1 /></a></code>

which results in losing the 2 great benefit of only outputting markup if the category exists and automatically outputting links that match your pretty url settings.

In general I think it might cut down on a good number of places where people opt to use the short tag version (of say txp:permlink) because the default wrapped output doesn’t provide enough flexibility.

Thoughts?

(though I’m sure this has been proposed before)


Site: placenamehere.com
Microformat Plugin: pnh_mf

Offline

#3 2006-07-04 15:53:33

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Add rel="bookmark" ability to <txp:permlink></txp:permlink>

  • rel="bookmark" was added in r1313
  • rel="tag" was added in r1315

Last edited by Mary (2006-07-04 15:53:50)

Offline

Board footer

Powered by FluxBB