PageMapDataSource Starting Node Issue

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.
4/19/2011 3:47:48 AM
Gravatar
Total Posts 160
mojoPortal Community Expert
Designer of over 25 unique and custom mojoPortal sites with DMSQD and sister company, The Design Loft - www.dmsqd.com

PageMapDataSource Starting Node Issue

Hi all

We've got a skin that utilises the main menu across the top, with a submenu down the left. We're using the following:

<asp:SiteMapDataSource ID="PageMapDataSource" StartingNodeUrl="~/parent-container" runat="server" ShowStartingNode="false" />

/parent-container is the parent page of the pages we'd like in the submenu and, whilst we've had this working across other sites, the only apparent difference is that on this site we're using extension-less URLs.

Any thoughts pls?

Thanks

Mark

4/19/2011 12:42:30 PM
Gravatar
Total Posts 2239

Re: PageMapDataSource Starting Node Issue

Hi Mark,

Are you seeing anything the mojoportal system log?

I'm not sure if it will work with extensionless urls. One thing you could do is grab the pageid of the page you are using as the starting node and use '~/default.aspx?pageid=X'. This isn't shown anywhere, it is just used to build the menu, so it shouldn't affect SEO or anything like that.

HTH,
Joe D.

4/20/2011 3:24:17 AM
Gravatar
Total Posts 160
mojoPortal Community Expert
Designer of over 25 unique and custom mojoPortal sites with DMSQD and sister company, The Design Loft - www.dmsqd.com

Re: PageMapDataSource Starting Node Issue

Hi Joe

You know, I'd wondered about doing it with the Page ID but didn't due to not being sure if it'd work and running out of time yesterday!

Anyhoo, tried that and still didn't work I'm afraid. Nothing in the error logs either.

I wonder if it is to do with the extensionless URLS. I'd tried turning them off but that didn't seem to do anything, even when I changed the display URL of the parent page to include ".aspx".

Bizarre.

Thanks

Mark

4/20/2011 6:49:52 AM
Gravatar
Total Posts 18439

Re: PageMapDataSource Starting Node Issue

Hi Guys,

I would recommend not setting StartingNodeUrl on the sitemap data source, but instead try setting the starting node offset (an integer) on the PageMenu.

See also Menu Structure and Properties

Best,

Joe

4/20/2011 7:17:03 AM
Gravatar
Total Posts 160
mojoPortal Community Expert
Designer of over 25 unique and custom mojoPortal sites with DMSQD and sister company, The Design Loft - www.dmsqd.com

Re: PageMapDataSource Starting Node Issue

Thanks Joe, I'll take a look.

4/27/2011 11:34:37 AM
Gravatar
Total Posts 2239

Re: PageMapDataSource Starting Node Issue

Hi Mark and Joe,

To make the menu work with StartingNodeUrl, IsSubMenu must be set to false on the "PageMenu" control.

HTH,
Joe D.

4/28/2011 2:49:25 AM
Gravatar
Total Posts 160
mojoPortal Community Expert
Designer of over 25 unique and custom mojoPortal sites with DMSQD and sister company, The Design Loft - www.dmsqd.com

Re: PageMapDataSource Starting Node Issue

Thanks Joe, I'll give that a shot - didn't even know that existed!

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