Multiple web.sitemap

Last post 05-09-2008 8:30 AM by awilinsk. 1 replies.

Sort Posts:

  • Multiple web.sitemap

    05-08-2008, 10:41 AM
    • Loading...
    • awilinsk
    • Joined on 08-12-2005, 2:01 PM
    • Posts 95

    I have an intranet site that I am creating using Web Application Projects (WAP). There are different sections split off into separate WAPs that are referenced by the root WAP. In each section there is going to be a separate web.sitemap file specifiying its structure and the root web.sitemap file references these section web.sitemap files. In the root WAP I have a master page specified with a main navigation bar that displays all of the separate WAP sections. This works great, but I would like a subnavigation bar based on the current sections web.sitemap file. I can't add a different SiteMapProvider becuase that child WAP is not a web application and that web.config file will only let you configure SiteMapProviders in the root web.config file.

     I have been working on this for two days now and can't seem to figure out a way to make this work.

    -wili
  • Re: Multiple web.sitemap

    05-09-2008, 8:30 AM
    Answer
    • Loading...
    • awilinsk
    • Joined on 08-12-2005, 2:01 PM
    • Posts 95

    So, I finally found a way to do this. if you have your SiteMapDataSource in the root master page, you can set the StartingNodeUrl from an appSetting value in your web.config file. Each sub project can have a key with a different value indicating the StartingNodeUrl. Then you can set the StartingNodeUrl of the SiteMapDataSource in the root master page on load.

    -wili
Page 1 of 1 (2 items)