Can Web.Sitemap store non-heirarchial structure?

Last post 08-17-2005 6:48 PM by ChadThiele. 2 replies.

Sort Posts:

  • Can Web.Sitemap store non-heirarchial structure?

    08-17-2005, 8:39 AM
    • Participant
      983 point Participant
    • ChadThiele
    • Member since 04-26-2003, 10:43 PM
    • Japan
    • Posts 274
    I want to use the web.sitemap file to store the structure of my site... but I can only seem to create one <siteMapNode url="Default.aspx" title="Home"  description=""> and it appears that it must contain some child nodes.

    Is there any way to use the web.sitemap file if your site has no heirarchial structure (yet)? I just want to use it to create a menu for my site.

    Thanks
    Did I answer your question(s)? Phweew...
  • Re: Can Web.Sitemap store non-heirarchial structure?

    08-17-2005, 4:04 PM
    • Contributor
      4,347 point Contributor
    • dannychen
    • Member since 08-24-2004, 12:17 PM
    • Redmond, WA
    • Posts 840
    • AspNetTeam
      Moderator
    Currently, you can only have one top level item.  However, you have two options.  First: you can set ShowStartingNode="False" on your SiteMapDataSource and it will ignore the top level node.  Second: If you set the url and title blank on the root node, it won't really render the node although there can be some mild style side effects of doing this. 
    --
    Danny
    disclaimer: Information provided is 'as is' and conveys no warranties or guarantees.
  • Re: Can Web.Sitemap store non-heirarchial structure?

    08-17-2005, 6:48 PM
    • Participant
      983 point Participant
    • ChadThiele
    • Member since 04-26-2003, 10:43 PM
    • Japan
    • Posts 274
     dannychen wrote:
    Currently, you can only have one top level item.  However, you have two options.  First: you can set ShowStartingNode="False" on your SiteMapDataSource and it will ignore the top level node.  Second: If you set the url and title blank on the root node, it won't really render the node although there can be some mild style side effects of doing this. 
    --
    Danny


    Ooh, I didn't know about the ShowStartingNode property. Thanks, I'm at work atm, I'll check it out when I get home.

    Thank you for the quick response.
    Did I answer your question(s)? Phweew...
Page 1 of 1 (3 items)