Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Title attribute for links
I think there is still lack of support for the title attribute in all link tags. Even though You can define title in permlinks, You can’t do it in
<txp:link_to_home>Foo</txp:link_to_home>
Further, if You open a form used for article listing and put there one of article properties like this
<li><txp:permlink title="<txp:title />"><txp:article_image /></txp:permlink></li>
This will result in a set of errors since using article tags out of article context.
Maybe, there is a plugin, which helps to operate with title attributes, but I couldn’t find such one and title is really significant for good usability. Please, implement improved title handling in a new revision. Actually I’m up for coding it myself, so one of developers needs only check it in. ;-)
Offline
#2 2010-07-20 20:43:35
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Title attribute for links
Nechaev wrote:
I think there is still lack of support for the title attribute in all link tags. Even though You can define title in permlinks, You can’t do it in
<txp:link_to_home>Foo</txp:link_to_home>
<a href="<txp:link_to_home />" title="Home">Foo</a>
(link_to_home)
Further, if You open a form used for article listing and put there one of article properties like this
<li><txp:permlink title="<txp:title />"><txp:article_image /></txp:permlink></li>
This will result in a set of errors since using article tags out of article context.
<txp:permlink title='<txp:title />'>
(Parsing Tag Attributes)
You can stop coding, bookmark Textbook ;)
Offline
Re: Title attribute for links
Fine, the first one is known for me and it is only a workaround, not the preferrable solution :-)
The second one is the same what I wrote and it doesn’t work.
Offline
#4 2010-07-20 21:46:02
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Title attribute for links
Nechaev wrote:
The second one is the same what I wrote
??
Offline
Re: Title attribute for links
Look, I wrote:
“(…) if You open a form used for article listing and put there one of article properties like this
<li><txp:permlink title="<txp:title />"><txp:article_image /></txp:permlink></li>
This will result in a set of errors since using article tags out of article context.”
Then You wrote the same as suggestion to solve my problem
“ <txp:permlink title='<txp:title />'>
(Parsing Tag Attributes)”
;-)
Offline
#6 2010-07-20 22:14:09
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Title attribute for links
<txp:permlink title="<txp:title />">
vs.
<txp:permlink title='<txp:title />'>
And I gave you a link ;)
Offline
Pages: 1