Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Templating - Finding Page Siblings


Reply

3 Posts   1626 Views

Avatar
Hamish

20 May 2008 at 8:55am Community Member, 712 Posts

Hi all,

Is there a tag to find out if a particular page has siblings? Or, failing that, that the parent page has more than 1 menu-visible child?

I'll code a custom property if I need too - but wondered if such a property already existed. I've tried all the obvious names, and tried manipulating the parent attribute without any luck. If not, it would be a snippet to have.

Thanks!

Avatar
dio5

20 May 2008 at 9:35am Community Member, 501 Posts

Something like this?

http://doc.silverstripe.com/doku.php?id=recipes:siblings

Avatar
Hamish

20 May 2008 at 9:58am Community Member, 712 Posts

Ah ha - can I vote that into the core? +1!

Thank you