Link to sibling page(s)
Permalink1. How would I dynamically find the previous and next sibling pages (specifically the links to them)?
2. How would I test for the first and last items (e.g. no previous sibling, or no next sibling)?
Thanks for any help on this!
that new block in the recent release but it was just what I needed. Thanks s=
o much for the follow up!
On Jan 14, 2011, at 9:03 AM, Concrete5 Community <discussions@concretecms.co=
m> wrote:
>=20
$bt_main = BlockType::getByHandle('next_previous'); $bt_main->controller->loopSequence = true; $prev = $bt_main->controller->getPreviousCollection(); $next = $bt_main->controller->getNextCollection();
The code for that block may be a great reference if its not what you are looking for.