I'm trying to create a menu control using the EPiServer PageTree control. I want to render the items differently in the ItemTemplate depending on the indent level. In the IndentTemplate Container.Indent has a value, but not in the ItemTemplate. There it is always 0.
Why is it so? Is there a workaround for it?
Are you using a binding expression and Container.CurrentPage.Indent?
I use <%# Container.Indent%> . Container.CurrentPage.Indent is from the old days.
Ahh, it's a bug (no 76618) in EPiServer CMS 6 R2. See this link for more info. It is NOT fixed in the 501 hotfix!
Oh, and the problem is with the ItemHeaderTemplate, not the ItemTemplate as I wrote.