Monday, 3 March 2008

Menus & EPi5

In older versions of EPiServer it was difficult to create menus based on clean nested lists e.g.

<ul>
<li></li>
<li></li>
<ul class="selected">
<li></li>
<li class="selected"></li>
</ul>
<li></li>
<ul>

In the past I utilised code for a custom menu control I found on the developer forums (apologies, I can not find the link again so cannot reference it here).

However, now in EPi 5 the Page Tree control contains two new templates which makes creating these types of menus a breeze:

Check out <IndentTemplate> and <UnindentTemplate> within the PageTree control

No comments: