Try our conversational search powered by Generative AI!

Question about PageTree


Say I have 4 levels of pagetrees, I want to show only two levels,BUT, when the end user click the 2nd level link, they can expand the tree to the next level. is it possible to do that? There are 'Expendall' and 'NumberOfLevels' on the PageTree properties, when I set Expendall to True, NumberOfLevels to 2, it does look fine, but when u click the 2nd level nod, u can not expand the tree. Any experts could help me with this? Thank  you sooooooooooooooooooooooooooooooooo much Tongue out

Nov 27, 2008 17:22


- The ExpandAll property definies if all branches should be expanded or if just the "active" branch should be.
- The NumberOfLevels sets the max depth of the tree that will ever be shown.

To be able to support your scenario you would probably have to do some coding. It seems like you want something similar to the menu which can be used with a pagedatasource control, but that control puts out some seriously ugly html.

My starting point would be to use the PageTree and hook up to the pageTree.PageLoader.GetChildrenCallback method and thereby select when I return children to display in the tree.

Hope that this will get you going!

Nov 28, 2008 1:54
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.