Pagetree

Vote:
 

Hi,

I guess it should be quite simple but I'm stuck.

I want to show all children for a spesific page with 3 levels.

Here is an illustration:

Dictionary (level1)

   A (level 2)

         alfa - first letter in alphabet (level 3)

         alphabet - letters

   B

         beta - .....

and so on

 

I've explored the pagetree object, but using the templates available, I just didn't

manage to show all tree levels.

So if anybody could give me a clue, it wold be great!

 

Thanks in advance!

Kind regards, JHA

 

 

#50984
May 18, 2011 15:43
Vote:
 

I have to add that all nodes should be listed when root is selected.

In example above, dictionary is selected.

#50985
May 18, 2011 15:49
Vote:
 

Have you set ExpandAll="true" on the PageTree control?

#50990
May 18, 2011 17:41
Vote:
 
Ahhh - all those details..... Thanks Magnus! Again you are a lifesaver! :)
#51000
May 19, 2011 11:17
Vote:
 
I wounder if you could help me with a last problem regarding this pagetree. On the unindent template I've put an anchor link "go to top", but this is rendered twice on the bottom of the list. I guess it is because there is an unindent both on the lower level and top level. I only want the anchor link on the lower level after the last item. Using the expanded template will but anchor on all items I guess. Do you have any suggestions how to hide the last anchor (on the top level) Hope you understand what I mean.
#51001
May 19, 2011 11:24
Vote:
 

Perhaps you can use the Container.Indent property to determine which level you are on and only output your link on one of the levels.

#51002
May 19, 2011 11:32
Vote:
 

Or maybe you could put it in the FooterTemplate?

#51013
May 19, 2011 18:00
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.