Skip to content

cwh_link_to_next is a Textpattern plugin that provides a replacement tag for <txp:link_to_next />

Notifications You must be signed in to change notification settings

chorrell/cwh_link_to_next

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cwh_link_to_next

cwh_link_to_next is a Textpattern plugin that provides a replacement tag for <txp:link_to_next /> that includes a new format attribute which provides the ability to set the link format as a link tag suitable for placing in the head of any individual article page on your site. You can do this by setting the format attribute like so:

<txp:cwh_link_to_next title="Next" format="link" />

which will produce something similar to:

<link rel="next" href="http://example.com/article/2/next-post" title="Next Post" />

Note that when used as a single tag without the format attribute specified:

<txp:cwh_link_to_next />

if will produce a plain text link much in the same way as <txp:link_to_next />:

http://example.com/article/2/next-post

Finally, it can also be used as a container tag in the same manner as <txp:link_to_next /> if no format value is specified:

<txp:cwh_link_to_next> ...Text or Tag... </txp:cwh_link_to_next>

If you do specify a link value for the format attribute while used as a container tag, it will still produce a link tag.

This tag also shares all of the same attributes as <txp:link_to_next />. For a complete list of applicable attributes, see this Textbook entry.

For a further explanation of the benefits of using link tags for your site's navigation, please see Day 9: Providing additional navigation aids from Mark Pilgrim's Dive Into Accessibility.

About

cwh_link_to_next is a Textpattern plugin that provides a replacement tag for <txp:link_to_next />

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages