Question about PageTree

Member since: 2008
 

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

#26258 Nov 27, 2008 17:22
  • Member since: 2004
     

    Hi,

    - 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 asp.net 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!

    #26262 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.
Please login to post a reply