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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Template Questions /

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

grandchild submenu that show other grandchildren


Go to End


2314 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