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.

Template Questions /

grandchild submenu that show other grandchildren


Reply


1457 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