Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2005-11-26 04:56:14
- liquidautumn
- New Member
- Registered: 2005-11-26
- Posts: 3
set "title" attribute for A tag, generated with txp:link_to_home
I didn’t found a way to do this and it’s probably would go to feature request, if not implemented yet.
Passing unresolved attributes to generated tag AS IS seems obvious behaviour for Container Tag.
Offline
#2 2005-11-26 10:48:00
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Offline
#3 2005-11-26 14:04:02
- liquidautumn
- New Member
- Registered: 2005-11-26
- Posts: 3
Re: set "title" attribute for A tag, generated with txp:link_to_home
Unresolved means not parsed. For example:
[txp:link_to_home title=“My Homepage” accesskey=“h”]Home[/txp:link_to_home]
currently renders to
[a href=“http://mytpsite.exe/”]Home[/a]
but would be rendered to
[a href=“http://mytpsite.exe/” title=“My Homepage” accesskey=“h”]Home[/a]
I think last approach is reasonable, it just gives more flexibility.
Thanks for your workaround, but it’s just a workaround for particular case, not the solution.
Last edited by liquidautumn (2005-11-26 20:31:15)
Offline
#4 2005-11-27 02:29:12
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: set "title" attribute for A tag, generated with txp:link_to_home
Well, that’s what those tags are there for. Why extend the other tag unnecessarily?
Offline
#5 2005-11-27 02:49:50
- liquidautumn
- New Member
- Registered: 2005-11-26
- Posts: 3
Re: set "title" attribute for A tag, generated with txp:link_to_home
it’s not about extension (not much extension needed I belive), mary, it’s about what is reasonable.
what this tag is for then?
you can substitute this tag, but can you substitute all other Container Tags?
this would make developer’s life much easier, if Container Tags would just pass by, not discard any unparsed attributes.
doesn’t it make sense?
Offline