KoffeeKoder


  • Displaying External Links Using Web.SiteMap
    published on 5/29/2008 8:05:35 PM
  • Sometimes you have a need to show a link to an external URL. If you create a simple siteMapNode in the Web.siteMap file then it won't be displayed.

    The following won't work:

    <siteMapNode url="http://www.azamsharp.com" title="Blog" />

    You can make this work by simply including the roles attribute to the siteMapNode element and assigning a wild card "*" value.

    <siteMapNode url="http://www.azamsharp.com" title="Blog" roles="*" />