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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Archive /

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

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

Templating - Finding Page Siblings


Go to End


3 Posts   2081 Views

Avatar
Hamish

Community Member, 712 Posts

20 May 2008 at 8:55am

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

Community Member, 501 Posts

20 May 2008 at 9:35am

Avatar
Hamish

Community Member, 712 Posts

20 May 2008 at 9:58am

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

Thank you