skins with four menues, and a question of sitemapdatasources

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.
6/23/2011 5:30:12 AM
Gravatar
Total Posts 192

skins with four menues, and a question of sitemapdatasources

here: http://www.mojoportal.com/menu-structure-and-properties.aspx

for each level of page menu a new SiteMapDataSource is introduced.

can't pagemenu controls use existing SiteMapDataSource controls?

for example isn't using this code correct?

<asp:SiteMapDataSource ID="SiteMapData" runat="server" ShowStartingNode="false" />
<asp:SiteMapDataSource ID="PageMapDataSource" runat="server" ShowStartingNode="false" />

<portal:SiteMenu id="SiteMenu1" runat="server" UseTreeView="false" HideMenuOnSiteMap="false" Direction="Horizontal" TopLevelOnly="true"></portal:SiteMenu>
<portal:PageMenu id="PageMenu1" runat="server" UseTreeView="false" Direction="Horizontal" DynamicDisplayLevels="0" />
<portal:PageMenu id="PageMenu2" runat="server" UseTreeView="false" Direction="Horizontal" SiteMapDataSource="PageMapDataSource" StartingNodeOffset="2" DynamicDisplayLevels="0" />
<portal:PageMenu id="PageMenu3" runat="server" SiteMapDataSource="PageMapDataSource" UseTreeView="true" StartingNodeOffset="3" TreeViewShowExpandCollapse="true" MenuSkinID="PageMenu3" />

6/23/2011 1:43:14 PM
Gravatar
Total Posts 18439

Re: skins with four menues, and a question of sitemapdatasources

As I recall they really need each their own sitemap data source because if one menu sets the starting node or starting node offset it affects the datasource and therefore would affect the other menus that use the same one. To have complete control they each need their own. If 2 menus were supposed to show the exact same tree of pages it would work ok, but usually they are not doing that. PageMenu is starting at the current page and site menu is starting at the root.

Hope that helps,

Joe

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