Results 1 to 3 of 3

Thread: SiteMapPath *Resolved*

  1. #1

    Thread Starter
    Fanatic Member davebat's Avatar
    Join Date
    Dec 2002
    Posts
    727

    SiteMapPath *Resolved*

    I have one site set up, but there are different sections too it. My main section has a SiteMapPath that displays the breadcrumb based on my web.sitemap file, but how do I insert another SiteMapPath for the other section that doesn't contain the links for the main section.

    So in essence I need two seperate web.sitemap files, is this possible?
    Last edited by davebat; Oct 23rd, 2006 at 08:46 AM.

  2. #2

    Thread Starter
    Fanatic Member davebat's Avatar
    Join Date
    Dec 2002
    Posts
    727

    Re: SiteMapPath

    I figured it out, you can have multiple sitemap files by specifying them in the web.config like so:

    VB Code:
    1. <siteMap>
    2.       <providers>
    3.         <add
    4.           name="RmmisXmlSiteMapProvider"
    5.           type="System.Web.XmlSiteMapProvider"
    6.           siteMapFile="rmmis.sitemap" />
    7.         <add
    8.           name="DashboardXmlSiteMapProvider"
    9.           type="System.Web.XmlSiteMapProvider"
    10.           siteMapFile="dashboard.sitemap" />
    11.       </providers>
    12.     </siteMap>

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: SiteMapPath *Resolved*

    I haven't been working with sitemaps much in ASP.NET, we've used our own algorithm to generate it in a very optimized fashion (you know how it is with corporations). But is a single provider all that's required for the entire website? Does this get generated from the VS.NET solution itself, and can any files be excluded?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width