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/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. :(

12/16/2010 6:06:41 AM
Gravatar
Total Posts 18439

Re: Sitemap empty

Please explain what you are trying to accomplish by using that setting on the site menu. It may be that the menu actually sets the property on the datasource and then when the sitemap tries to use the same datasource it causes this problem.

Normally that setting is useful on on PageMenu which is designed to be a sub menu but on the main menu (SiteMenu) you would typically show top level pages and not need this setting.

12/16/2010 7:08:01 AM
Gravatar
Total Posts 18439

Re: Sitemap empty

If you get the latest code again, I made a change to help you.

What you can do is add an extra SiteMapDataSource with a custom id like this:

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

I've added a new setting "DataSourceId" on SiteMenu so you can set it to use your custom data source that way it won't interfere with the one used by the SiteMap page.

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

Hope it helps,

Joe

12/16/2010 9:09:40 AM
Gravatar
Total Posts 14

Re: Sitemap empty

Tnx, I'll try this later. I have multilanguge site so I want to bind sitemenu with diferent items depending of the current language that user pick up (flags in uper right corner). My site is public so take a look (www.pandora-studio.hr).

My site links tree is:

Croatian
- POČETNA
- VIRTUALNA STVARNOST
...
English
- HOME
- VIRTUAL REALITY
...

12/17/2010 1:19:32 AM
Gravatar
Total Posts 14

Re: Sitemap empty

Tnx, it's working like a charm. :))))

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