SiteMapPath

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/28/2010 2:39:47 AM
Gravatar
Total Posts 19

SiteMapPath

Hi.

 

How can I add SiteMapPath?

Well, obviously I should add:

           <asp:SiteMapPath ID="SiteMapPath1" runat="server">
            </asp:SiteMapPath>

somewhere in the layout.master of my skin, but how to make it work?

7/28/2010 3:17:01 AM
Gravatar
Total Posts 19

Re: SiteMapPath

Nevermind. I've found it.

7/28/2010 7:42:50 AM
Gravatar
Total Posts 19

Re: SiteMapPath

Hi.

Although I found the SiteMapPath I have some difficulties with positioning.

I am using 3 columns, and my SMP is in the center div. I wish to make it appear above the columns and below the menu. How to do that?

 

And on simimlar note, my SiteMap.aspx does not display anything. But when I switch to another skin, the page displays properly. => http://dodomu.art.pl/sosna/SiteMap.aspx

7/28/2010 7:52:14 AM
Gravatar
Total Posts 18439

Re: SiteMapPath

Why do you add your own SiteMapPath when the mojoPortal BreadCrumbs control already included in all the mojoPortal skins already has a SiteMapPath control inside it configured to provide breadcrumbs according to page settings?

You are replicating existing functionality.

7/28/2010 8:02:08 AM
Gravatar
Total Posts 19

Re: SiteMapPath

breadcrumbs

Yes, I've found it :)

I was looking for something like sitemappath, not breadcrumbs in the layout.master, and breadcrumbs work correct.

Still, I cannot display SiteMap. In SiteMap.aspx the list is not created (it is not present when you look at the page code), but that's happening only on this skin. What could be the problem?

7/28/2010 8:07:17 AM
Gravatar
Total Posts 18439

Re: SiteMapPath

Most likely your layout.master is missing this:

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

note that the ID is important, if you have changed the ID it will not work.

Best to compare your layout.master to one that works.

Hope it helps,

Joe

7/29/2010 2:37:01 AM
Gravatar
Total Posts 19

Re: SiteMapPath

Thanks for quick answer.

I have the following dataSources

 

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

The base skin from which I have started is the one you are using.

7/29/2010 5:57:03 AM
Gravatar
Total Posts 18439

Re: SiteMapPath

Hi,

I can tell when I view the source of your page that you are running a very old version of mojoPortal.

If you are making a new site I highly recommend upgrade to the latest version. Maybe it will solve this issue, I don't know but I would not setup a new site with an old version of mojoPortal and I can't really fix any problem in an old version or even diagnose it very well.

Best,

Joe

8/2/2010 3:25:51 AM
Gravatar
Total Posts 19

Re: SiteMapPath

Hi.

Another question regarding the topic.

 

When I set "Show Main Page i path" it displays as "Main Page" (or whatever it is translated to). I want to change that to the site name (title). Is that possible?

8/2/2010 5:54:59 AM
Gravatar
Total Posts 18439

Re: SiteMapPath

You can add this to user.config

<add key="UseSiteNameForRootBreadcrumb" value="true"/>

then touch Web.config so it reloads settings.

Hope it helps,

Joe

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