Results 1 to 3 of 3

Thread: [RESOLVED] Asp.Net2/VWDExpress - my sitemap file won't show the menu as I'd like

  1. #1

    Thread Starter
    Hyperactive Member gjon's Avatar
    Join Date
    Nov 2004
    Location
    Inescapable Void
    Posts
    442

    Resolved [RESOLVED] Asp.Net2/VWDExpress - my sitemap file won't show the menu as I'd like

    I have butchered this up a couple of times to try to get more than just Home at the first level but it just won't add more links to that first level of the menu. Can someone show me how please? This is what I've reset the sitemap file back to that works. I can get multiple links at a secondary level within a sitemapnode, but I just can't get more than one node at the uppermost level. The book shows it and it works on their sample site. Even when I copy there code into mine, it still only shows one link at the uppermost level.

    Thanks in advance

    <?xml version="1.0" encoding="utf-8" ?>
    <siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
    <siteMapNode url="default.aspx" title="Chaos Home" description="Home Page">
    <siteMapNode url="login.aspx" title="Login" description="Login Page">
    </siteMapNode>
    <siteMapNode url="about.aspx" title="About Chaos" description="About Chaos Computers" />
    <siteMapNode url="audio.aspx" title="Audio" description="PC Audio Hardware">
    <siteMapNode url="soundcards.aspx" title="Sound Cards" description="Sound Cards" />
    <siteMapNode url="speakers.aspx" title="Speakers" description="Speakers" />
    <siteMapNode url="headphones.aspx" title="Headphones" description="Headphones" />
    </siteMapNode>
    </siteMapNode>
    </siteMap>

  2. #2
    Hyperactive Member bsw2112's Avatar
    Join Date
    Nov 2001
    Location
    ottawa, canada
    Posts
    292

    Re: Asp.Net2/VWDExpress - my sitemap file won't show the menu as I'd like

    The book shows it and it works on their sample site. Even when I copy there code into mine, it still only shows one link at the uppermost level.
    From what I've read, sitemaps can only have one root node.

    You will need to create you "pseudo-first level navigation on the second level and hide the root node. You do that by playing with the attribute showStartingNode of the SiteMapDataSource control

    Code:
    <asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" showStartingNode="false" />
    bsw

  3. #3

    Thread Starter
    Hyperactive Member gjon's Avatar
    Join Date
    Nov 2004
    Location
    Inescapable Void
    Posts
    442

    Re: Asp.Net2/VWDExpress - my sitemap file won't show the menu as I'd like

    Thank you so much.

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