Problems with the PageTree control

Vote:
 
Hi, We are using the EPiServer:PageTree control to render a submenu and we have a problem getting the pagetree to instanciate pages in the SelectedItemTemplate and SelectedTopItemTemplate. It seams like that they are not used. Instead all pages get instanciated in SelectedExpandedItemTemplate and SelectedExpandedTopTemplate if they are selected no mather if they have childpages or not. /Matthias
#15739
Mar 25, 2008 19:07
Vote:
 
Use the Container.CurrentPage.Indent to check witch indentlevel in the the pagetree the page have And use that levelnumber control for example css /jesper snive
#16258
Mar 25, 2008 19:08
Vote:
 
There appears to be a bug in RC4 as described in the first post - the SelectedExpanded* templates, when defined, are used where a normal SelectedItem/SelectedTopTemplate should be used. This issue is now included in our bugtracking system, and will be addressed. Note: if you want to use the "indent" level to influence your PageTree, be aware that the property has moved from the PageData item to the PageTemplateContainer class. Previous versions of EPiServer: <%# Container.CurrentPage.Indent %> EPiServer CMS 5: <%# Container.Indent %>
#16259
Mar 25, 2008 19:08
Vote:
 
Has this been solved in cms 5.1? 'Cause i'm experiencing similar problems....
#16260
Mar 25, 2008 19:08
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.