Purchase a license: $65

Full refunds available within 30 days.

EE2 + compatible

Questions + support for purchased licenses: support@buildwithstructure.com


Sibling Tag Examples

Category: Displaying Content

The sibling tag allows you to traverse back and forth through the current page's entries using tag pairs and variables within the tag. It is intended for normal pages within the hierarchy and not listing entries. An example for listings follows the sibling tag below.

Linking to Page's Siblings

      <a href="{url}" title="{title}">Prev: {title}</a>
      <a href="{url}" title="{title}">Next: {title}</a>

Linking to Listing Entry's Siblings

{exp:channel:next_entry channel="news"}
   <a href="{structure:page_url_for:{entry_id}}">Previous Page</a>
{exp:channel:prev_entry channel="news"}
   <a href="{structure:page_url_for:{entry_id}}">Next Page</a>

« All Documentation