Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
add titles to [txp:link_to_next], etc...
Astoundingly simple question, ashamed to be asking, but…
How do I add titles to the built in article navigation tags, <txp:link_to_next>
and <txp:link_to_previous>
?
Offline
Re: add titles to [txp:link_to_next], etc...
It’s not as simple as it would seem, considering you have to use a different tag. Customize as needed, of course, but:
<txp:link_to_prev><txp:prev_title /></txp:link_to_prev>
and
<txp:link_to_next><txp:next_title /></txp:link_to_next>
Last edited by Elenita (2007-02-05 19:44:11)
Offline
Re: add titles to [txp:link_to_next], etc...
Let me clarify, I’d like to add a specific “title attribute” to the a-tag. Not simply the put the title of the article inside the anchor tags.
Offline
#4 2007-02-06 01:49:46
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: add titles to [txp:link_to_next], etc...
Both those tags can be used as single tags to output a url only.
Offline
Re: add titles to [txp:link_to_next], etc...
Great, thanks.
Offline