Sitemap empty

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
12/14/2010 8:14:34 AM
Gravatar
Total Posts 14

Sitemap empty

Hi,

My sitemap is empty (http://www.pandora-studio.hr/SiteMap.aspx). I have "Include In Site Map?" checked for all pages.

My code in layout.master:

<asp:SiteMapDataSource ID="SiteMapData" runat="server" ShowStartingNode="false" StartingNodeOffset="1" />
<asp:SiteMapDataSource ID="level3datasource" runat="server" ShowStartingNode="false" StartingNodeOffset="2" />

<portal:SiteMenu id="SiteMenu1" runat="server"
UseTreeView="false" UseSpanInLinks="true" HideMenuOnSiteMap="false"
Direction="Horizontal" TopLevelOnly="true" StartingNodeOffset="1"></portal:SiteMenu>

<portal:PageMenu id="PageMenu1" runat="server" UseTreeView="true" TreeViewShowExpandCollapse="true" SiteMapDataSource="level3datasource" />

<portal:ChildPageMenu id="ChildPageMenu" runat="server" CssClass="txtnormal"></portal:ChildPageMenu>

 

tnx

12/14/2010 8:29:35 AM
Gravatar
Total Posts 18439

Re: Sitemap empty

Remove StartingNodeOffset="1" , you should not specify that on any sitemapdatasource, you can specify it on a menu but you should not specify it on the data source.

12/14/2010 8:36:45 AM
Gravatar
Total Posts 14

Re: Sitemap empty

I remove it and it's still empty.

12/14/2010 9:08:24 AM
Gravatar
Total Posts 18439

Re: Sitemap empty

maybe you are editing the wrong file. When I add that it causes the problem you describe and when I remove it it fixes the problem.

12/14/2010 9:29:27 AM
Gravatar
Total Posts 14

Re: Sitemap empty

I have checked couple of times. :(

12/14/2010 9:38:03 AM
Gravatar
Total Posts 18439

Re: Sitemap empty

I would look in the log and see if any clues are logged.

Also I can tell that you produced your own build from source code in between releases, maybe get the latest code or use an official release. I just made a new release today.

If you modified the source code then possibly it created a problem.

12/15/2010 1:14:30 AM
Gravatar
Total Posts 14

Re: Sitemap empty

If I remove "StartingNodeOffset" from SiteMenu control, change from this

<portal:SiteMenu id="SiteMenu1" runat="server" StartingNodeOffset="1"
UseTreeView="false" UseSpanInLinks="true" HideMenuOnSiteMap="false"
Direction="Horizontal" TopLevelOnly="true"></portal:SiteMenu>

to this

<portal:SiteMenu id="SiteMenu1" runat="server" UseTreeView="false" UseSpanInLinks="true" HideMenuOnSiteMap="false"
Direction="Horizontal" TopLevelOnly="true"></portal:SiteMenu>

then everything works fine, but I wont to use starting node offset, so this is not solution for me.

12/15/2010 2:36:04 AM
Gravatar
Total Posts 14

Re: Sitemap empty

I just upgraded my code to the latest version (b02fdf88d14f ), and bug is still there.

12/15/2010 11:35:42 AM
Gravatar
Total Posts 14

Re: Sitemap empty

If you use StartingNodeOffset in portal:SiteMenu control site map ends up as empty page.

12/15/2010 12:18:06 PM
Gravatar
Total Posts 18439

Re: Sitemap empty

SiteMenu does not affect the sitemap at all. It is fine to set the menu properties however you like but you should not set startingnodeoffset on the SiteMapDataSource because the same data source is shared by the sitemap and the SiteMenu

In my first answer to you I said to change it on SiteMapDataSource because you posted this:

<asp:SiteMapDataSource ID="SiteMapData" runat="server" ShowStartingNode="false" StartingNodeOffset="1" />
<asp:SiteMapDataSource ID="level3datasource" runat="server" ShowStartingNode="false" StartingNodeOffset="2" />

and it is not correct, you should change it to this:

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

you can do whatever settings work for you on <portal:SiteMenu

12/16/2010 1:10:34 AM
Gravatar
Total Posts 14

Re: Sitemap empty

That's not correct, I have moved StartingNodeOffset from SiteMapDataSource to SiteMenu and site map is still empty, but when I remove StartingNodeOffset from SiteMenu then everything works fine. So I cant use StartingNodeOffset in SiteMenu. :(

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