- Gordon Anderson (Nickname: nontgor) [email protected]
This module provides convenience methods for previous and next siblings of a common parent. It is used for paging through a list of children items.
composer require "weboftalent/prev-next-sibling"
In a template call $PreviousSibling
<% with $PreviousSibling %><a href="$Link">$Title</a><% end_with %>
If there is no previous sibling the result will be blank and nothing will render.
In a template call $NextSibling
<% with $NextSibling %><a href="$Link">$Title</a><% end_with %>
If there is no next sibling the result will be blank and nothing will render.
##Requirements
- SilverStripe 4