SiteMenu visible level

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
7/30/2012 4:21:09 AM
Gravatar
Total Posts 25

SiteMenu visible level

Hi,

Where can i set the visibility level of the Site Menu?

My site has 3 levels, for example Root (level1), Level 2 and Level 3.

I have set the PageMenu control's StartingNodeOffset=2 to make sure the vertical menu only displays Level 3. How can I set so that the sitemenu only displays Level 1 and Level 2?


Thanks.

7/30/2012 12:53:49 PM
Gravatar
Total Posts 18439

Re: SiteMenu visible level

Hi,

If you notice on this site the site menu only shows level 1 and 2, it uses UseTreeView="true" and in theme.skin we have:

<portal:mojoTreeView runat="server" SkinID="SiteMenu"
...
MaxDataBindDepth="1"
/>

MaxDataBindDepth 1 makes it bind only 1 level below the root level.

Hope that helps,

Joe

7/30/2012 9:10:41 PM
Gravatar
Total Posts 25

Re: SiteMenu visible level

Hi Joe,

I've made the modifications as you described, however the page is still showing the third level.

I forgot to mention that i'm using a custom artisteer skin based on artisteer31-hovermenu, in case that makes a difference.

The layout markup is as follows:

<div class="art-nav-center">
<portal:SiteMenu ID="SiteMenu1" runat="server" UseTreeView="True" TreeViewPopulateOnDemand="false"
HideMenuOnSiteMap="false" SuppressImages="true" TopLevelOnly="False"></portal:SiteMenu>
</div>

and the theme.skin as follows:

<portal:mojoTreeView runat="server" SkinID="SiteMenu"
ContainerCssClass=""
RootUlCssClass="art-hmenu"
RenderLiCssClasses="true"
RenderAnchorCss="true"
LiCssClass=""
LiRootExpandableCssClass=""
LiRootNonExpandableCssClass=""
LiNonRootExpnadableCssClass=""
LiSelectedCssClass="active"
LiChildSelectedCssClass="active"
LiParentSelectedCssClass=""
AnchorCssClass=""
AnchorSelectedCssClass="active"
ExpandDepth="-1"
ShowExpandCollapse="false"
PopulateNodesFromClient="false"
SuppressCornerDivs="true"
MaxDataBindDepth="1"
/>

Did i leave something out?

 

7/31/2012 2:15:47 AM
Gravatar
Total Posts 25

Re: SiteMenu visible level

Nevermind Joe,

I think it was the CSS caching. Enjoy your coffee!


Thanks

7/31/2012 6:52:11 AM
Gravatar
Total Posts 18439

Re: SiteMenu visible level

Thanks for the coffee!

Cheers,

Joe

You must sign in to post in the forums. This thread is closed to new posts.