Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
link_to_next/prev: Possible as non-wrap tag?
Essentially, I am trying to do this:
<code><a href=”<txp:link_to_next />” class=“arrow_right”></a></code>
Basically, arrow_right is a div with a background, that is shifted on the hover state (so the icon lights up). No text is necessary.
The problem is that link_to_next, and link_to_prev are WRAP tags only, that don’t even support the class attribute.
All I need is to be able to output a link to the next article, I don’t want to wrap text. Is this possible? Am I missing something simple here?
:¬(
It’s worth noting I want to avoid wrapping the entire lot in a span/class, as the hover state on non <code><a></code> elements in IE do not show. Hence the link itself needs to have the class applied.
Update:
Got it working. Lack of sleep blinds you to the obvious answers sometimes. I wrapped the <code><txp:link_to_next>…</txp:link_to_next></code> tags in a span class, then specified the nested <code><a></code>, i.e. <code>.arrow_right a { … }</code> instead.
Last edited by rossharvey (2006-04-27 23:38:53)
Offline