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:

Template Questions /

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

grandchild submenu that show other grandchildren


Go to End


2032 Views

Avatar
PeltierEffects

Community Member, 6 Posts

30 June 2011 at 7:41am

Edited: 30/06/2011 7:23pm

I want to have a submenu on grandchild page that shows other grandchildren. For example:

Page A is the top level.
Page B is a child of Page A
Page X is a child of Page B
Page Y is a child of Page B
Page Z is a child of Page B

When someone goes to page B , the submenu will show X, Y and Z , this is no problem.

When someone goes to page X , I want the submenu to show X, Y and Z . However x, Y and Z are not child of X so how do I show them. < %control children > obviously will not work.

Ideas or suggestions? Thanks

***** Update *****

I found the answer here -
http://doc.silverstripe.org/old/recipes:siblings