Results 1 to 2 of 2

Thread: need help on sitemap menus

  1. #1
    Junior Registered
    Join Date
    Feb 2008
    Posts
    3

    need help on sitemap menus

    Ok I like to start of saying I am a newbie doing the as an hobby. After rebuilding my website with .aspx format I came across sitemaps and not knowing that much about them I pretty much made one file that would be my menu file and use the include file on all my pages from code I found online. Now that is nice and all but I want to make a second sitemap and be able to link to it but I dont know how seeing how I never got how to do the first one. After doing some reading I came across how to configure the web.config file to support more then one site map. My web.config file is setup like this:

    <?xml version="1.0" encoding="utf-8"?>
    <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
    <system.web>
    <customErrors mode="Off" />
    <authentication mode="Windows"/>
    <siteMap defaultProvider="XmlSiteMapProvider" enabled="true">
    <providers>
    <clear />
    <add name="XmlSiteMapProvider"
    description="Default SiteMap provider"
    type="System.Web.XmlSiteMapProvider"
    siteMapFile="Web.sitemap"
    />
    <add name="StorySiteMap"
    description="Story SiteMap provider"
    type="System.Web.XmlSiteMapProvider"
    siteMapFile="story/story.sitemap"
    />
    </providers>
    </siteMap>
    </system.web>
    </configuration>

    Now my Question is how do I use the StorySitemap and not the default one.
    The code I found that I am using for the default sitemap is:
    <form id="form1" runat="server">
    <table cellpadding="8">
    <tr>
    <td width="108" rowspan="2" valign="top" bgcolor="#990000">
    <b><i>Menu Control</i></b>
    <br />
    <br />
    <asp:Menu DataSourceID="SiteMapDataSource1" ID="Menu1" runat="server"
    StaticDisplayLevels="2" BackColor="#FFFBD6"
    DynamicHorizontalOffset="2" Font-Names="Verdana"
    ForeColor="#990000" StaticSubMenuIndent="10px">
    <StaticSelectedStyle BackColor="#FFCC66" />
    <StaticMenuItemStyle HorizontalPadding="5px" VerticalPadding="2px" />
    <DynamicMenuStyle BackColor="#FFFBD6" />
    <DynamicSelectedStyle BackColor="#FFCC66" />
    <DynamicMenuItemStyle HorizontalPadding="5px"
    VerticalPadding="2px" />
    <DynamicHoverStyle BackColor="#990000" Font-Bold="False"
    ForeColor="White" />
    <StaticHoverStyle BackColor="#990000" Font-Bold="False"
    ForeColor="White" />
    </asp:Menu>
    <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" />
    </td>
    </table>
    <br /><br />
    </form></P>

  2. #2
    Administrator Chris's Avatar
    Join Date
    Feb 2003
    Location
    East Lansing, MI USA
    Posts
    7,055
    Your problem is pretty specific to whatever software you're using I think, and most of the people here (and the web in general) do not use ASP or other Microsoft platforms. Sorry.
    Chris Beasley - My Guide to Building a Successful Website[size=1]
    Content Sites: ABCDFGHIJKLMNOP|Forums: ABCD EF|Ecommerce: Swords Knives

Similar Threads

  1. DHTML menus.
    By Generalissimo in forum HTML, CSS, Layout, and Design
    Replies: 5
    Last Post: 01-07-2008, 04:23 AM
  2. Sitemap for a blogger blog
    By Tresor in forum Search Engine Optimization
    Replies: 3
    Last Post: 10-10-2007, 10:27 AM
  3. Unable to run Google Sitemap Generator script (sitemap_gen.py)
    By fredarn in forum Search Engine Optimization
    Replies: 6
    Last Post: 01-07-2007, 09:37 PM
  4. Google Sitemap
    By The New Guy in forum Internet Industry News
    Replies: 4
    Last Post: 06-05-2005, 06:38 AM
  5. Menus - Text, Graphical w/html map, Graphical w/Server Map
    By Owl in forum Search Engine Optimization
    Replies: 7
    Last Post: 03-05-2004, 08:28 PM

Bookmarks

Posting Permissions

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