Try our conversational search powered by Generative AI!




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


         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



May 18, 2011 15:43

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

In example above, dictionary is selected.

May 18, 2011 15:49

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

May 18, 2011 17:41
Ahhh - all those details..... Thanks Magnus! Again you are a lifesaver! :)
May 19, 2011 11:17
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.
May 19, 2011 11:24

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.

May 19, 2011 11:32

Or maybe you could put it in the FooterTemplate?

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.
* 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.