Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Damian Green 452 posts 1433 karma points
    Nov 30, 2012 @ 13:25
    Damian Green
    0

    Sitemap tweak

    It would probably be a good idea to add a check for protected content to the sitemap:

       if (!Umbraco.IsProtected(c.Id, c.Path))
           {
              <li>     
               <a href="@c.NiceUrl()">@c.Name</a>
               @traverse(c)
              </li>           
           }
Please Sign in or register to post replies

Write your reply to:

Draft