Solved

sqlsitemapprovider and multiple web.sitemap files

Posted on 2006-07-18
3
482 Views
Last Modified: 2008-01-16
Hello

In previous web projects I have had different web.sitemap files for different menus on my page (e.g. top menu and left hand nav).

I can't see any obvious way with the sqlsitemapprovider to emulate multiple web.sitemap fiels for different menus. Is there a ways i can create separate 'menus' with the sqlsitemapprovider?

Thanks a lot

andrea
0
Comment
Question by:andieje
  • 2
3 Comments
 
LVL 27

Accepted Solution

by:
Sammy earned 500 total points
Comment Utility
It's actually easy to create multiple sitemaps based on the menus you choose.
from MSDN
http://msdn2.microsoft.com/en-us/library/ms178426.aspx

<configuration>
  <!-- other configuration sections -->
  <system.web>
    <!-- other configuration sections -->
    <siteMap defaultProvider="XmlSiteMapProvider">
     <providers>
       <add
         name="Company1SiteMap"
         type="System.Web.XmlSiteMapProvider"
         siteMapFile="~/Company1/Company1.sitemap" />
       <add
         name="Company2SiteMap"
         type="System.Web.XmlSiteMapProvider"
         siteMapFile="~/Company2/Company2.sitemap" />
     </providers>
    </siteMap>
  </system.web>
</configuration>

HTH
0
 

Author Comment

by:andieje
Comment Utility
Hi

I'm using SQLSiteMapProvider which stores he sitemap in a database and not an xml file.

Also, my understanding of teh above method os that only provider is active at a time so only one menu can be seen at at a time. Is that right?
0
 

Author Comment

by:andieje
Comment Utility
Hi

I'm wrong - you can use multiple site map providers at the same time.

However, I still would like to know if i can emulate multiple sitemaps with sqlsitemapprovider

thanks
andrea
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now