November Happy Hour will be moved to Thursday December 5th.

PageTree

Vote:
 
Jag undrar hur man gör för att få PageTree att fungera som på www.skovde.se, dvs på startsidan så vill jag ha alla toppmenyer och på resterade sidor vill jag ha den andra nivån som toppmeny. Idag så använder jag PageLink=<%#configuration.startpage%> jag misstänker att jag få bygga en egen funktion som på något sätt retunerar PageReference?? /Tomas
#12242
Mar 17, 2005 11:45
Vote:
 
from first look - id say its probably doing something like GetChildren based on the id of the link pressed... GetChildren returns PageDataCollection - a list of pages
#13907
Mar 17, 2005 16:00
Vote:
 
I would recommend setting the "start page" for each sub-page through a dynamic property of the type pagereference. This dynamic property is set to root page on the top level. And for each sub level, you set this property to the current page. That way you can be sure that this menu is also displayed when the user views pages longer down in the structure. Frank :)
#13908
Mar 18, 2005 11:42
Vote:
 
Thanx, it worked nice. CodeBehind protected PageReference MenuRoot { get { if(CurrentPage["TreeNode"] != null) return (PageReference)CurrentPage["TreeNode"]; else return Configuration.StartPage; } } ascx page
#13909
Mar 18, 2005 16:20
* 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.