Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Offline
Re: LinkToNext in head AND body
please post some code examples.
A hole turned upside down is a dome, when there’s also gravity.
Offline
Re: LinkToNext in head AND body
Offline
#4 2006-10-31 02:52:33
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: LinkToNext in head AND body
If you’re using 4.0.4 (and you should…) you can use link_to_next in your page wherever you want. Something like:
<txp:if_individual_article>
<txp:article pgonly="1" />
<link rel="prev" href="<txp:link_to_prev />" />
<link rel="next" href="<txp:link_to_next />" />
</txp:if_individual_article>
Offline
Re: LinkToNext in head AND body
Thanks everyone! I found that by putting <code>
<link rel=“home” title=“home” href=”<txp:link_to_home />” />
<link rel=“prev” title=“prev” href=”<txp:link_to_prev />” />
<link rel=“next” title=“next” href=”<txp:link_to_next />” /> </code>
in the head and pgonly=“1” with my article, it all works fine.
I had been putting <code><link rel=“next” title=“next” href=”<txp:link_to_next /></txp:link_to_next>” />” /> </code>to make the head work and missing the pgonly on the article.
In case anyone was wondering, I have read that putting those links in the head makes for better accessibility for people with mobiles, screen readers and non-mouse assistive technologies, although I haven’t tried any of these. Cheers!
Oh, and I didn’t have to turn off auto append :-)
Last edited by zero (2006-10-31 18:51:16)
Offline
Pages: 1