locked
Need a CSS Friendly Menu Adapter in with I can assign each first-level menu item a different CSS? RRS feed

  • Question

  • User-1680349116 posted

    Hi,

    According to my project requirments I have to create an ASP.Net menu with each menu item having a different background image.

    For this I need a CSS Friendly Adapter, I have searched alot and found this one Horizontal Menu Adapter .

    Now I have a question regarding the web.sitemap defined in an example that comes with this above adapter code-

    <?xml version="1.0" encoding="utf-8" ?>
    <siteMap >
      <siteMapNode url="Nothing.aspx" title="Nothing"  description="Nothing">
        <siteMapNode url="Home.aspx" title="Home"  description="Home"></siteMapNode>
        
      <siteMapNode url="Forum.aspx" title="Forum"  description="Forum" >
        <siteMapNode url="MyPost.aspx" title="My Posts" description="My Post"/>
        <siteMapNode url="AllPost.aspx" title="All Posts" description="All Posts"/>
        <siteMapNode url="NewPost.aspx" title="New Posts" description="New Posts"/>
      </siteMapNode>
      <siteMapNode url="Article.aspx" title="Article"  description="Article">
        <siteMapNode url="ViewArticle.aspx" title="View Articles" description="View Articles"/>
        <siteMapNode url="SearchArticles.aspx" title="Search Articles" description="Search Ariticles"/>
        <siteMapNode url="LatestPost.aspx" title="Latest Posts" description="Latest Posts"/>
        <siteMapNode url="NewArticle.aspx" title="New Article" description="New Articles"/>
      </siteMapNode>   
      </siteMapNode>
    </siteMap>


    Here in this site map there is root node that is a dummy sitemap node which is actually pointing towards no page.

    But as far as I know about the sitemap, I have always created a root node with "Home" text which points towards the default.aspx page. But this sample site map is completly different.

    1. Can you please let me know why he done this, for acheiving required CSS styles?

    2. Does writing sitemap like this way is correct?

    3. Will it create any issue in the long run regarding site navigation and/or SEO purposes?

    Regards,

    Dazy


    Monday, January 10, 2011 2:27 PM

All replies

  • User-428617251 posted

    Hi dazy,

    did you get a valid response for this? I'm in a very similar situation.

    Thanks

    Monday, October 17, 2011 6:46 PM