Copied to clipboard

Flag this post as spam?

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


  • Ben McKean 272 posts 549 karma points
    Jul 04, 2011 @ 12:26
    Ben McKean
    0

    Edit code

    Hi

    Is there anyway to edit the source?

    I need to make some amends to what is produced in the XML file. Is there any way to do this?

    I use umbracoNaviHide property to hide items from my main navigation so there will be other pages I want to include in sitemap.xml file but not on the main navigation. At the moment if I hide a page from my main navigation it also hides from the sitemap.xml

    Thanks in advance

    Ben

  • Daniel Bardi 927 posts 2562 karma points
    Jul 04, 2011 @ 12:34
    Daniel Bardi
    0

    Edit the sitemap xslt and remove the filter on umbracoNaviHide

  • Rich Green 2246 posts 4008 karma points
    Jul 04, 2011 @ 12:42
    Rich Green
    0

    Hey,

    @Daniel, seems like this runs from compiled code, not XSLT.

    @Ben, in my opinion you have 2 options:

    Switch to a more configurable SiteMap script, plently available here http://our.umbraco.org/search?q=sitemap&content=project, then as Daniel suggests remove the  filter for umbracoNaviHide.

    Second option (not recommended) is to change your docType property from umbracoNaviHide to umbracoNaviHide2 and then update this is all your xst/razor scripts.

    Rich

  • Daniel Bardi 927 posts 2562 karma points
    Jul 04, 2011 @ 23:20
    Daniel Bardi
    1

    My mistake... confused with other xslt sitemap generator.

    I'd highly recommend using the Cultiv Search Engine Sitemap: http://our.umbraco.org/projects/website-utilities/cultiv-search-engine-sitemap

Please Sign in or register to post replies

Write your reply to:

Draft