Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
extra attribute "rel" for links
Is it possible to add the attribute “rel” to the properties of links, managed via the links-tab?
I use that attribute to open links (specified with rel=“external”) in a new browser window, because xhtml 1.1 does not support the target-attribute for the a-tag anymore.
(more info about this on <a href=“http://www.sitepoint.com/article/standards-compliant-world/1”>http://www.sitepoint.com/article/standards-compliant-world/1</a>)
Perhaps a simple solution is to allow passing the rel-attribute to the txp:linklist-tag, but then it is not possible to have different rel-values for each link.
Thanks in advance,
Geert Van Aken
Ps: If anyone can write a plugin that implements my suggestion, I’d be happy to use it!
Offline
Re: extra attribute "rel" for links
This plugin already exists: zem_link. One of its features is the ability to use Textpattern’s table of links:
<txp:zem_link linkid="42" rel="external" />
The plugin help provides a more detailled explanation of the various attributes.
HTH,
Robert
Offline
Re: extra attribute "rel" for links
Thanks for the link wet, but I don’t think this plugin does what I need, unless I missed some part of the documentation.
What I need is an extenstion to either txp:linklist, txp:link or txp:linkdesctitle, not for txp:permlink.
Is it possible to use the zem_link plugin to list all the files of a specific category for links managed via the links-tab?
Thanks,
Geert
Offline
#4 2006-07-04 22:06:49
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: extra attribute "rel" for links
Added in r1411.
Offline
Re: extra attribute "rel" for links
Thanks!
Offline
Pages: 1