Copied to clipboard

Flag this post as spam?

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


  • Ronald 4 posts 24 karma points
    Apr 04, 2011 @ 02:02
    Ronald
    0

    Auto generated SiteMap

    Hi there,

    I'm pretty new to Umbraco so I apologies for any stupid questions.
    In my old website I used a SiteMapPath and a self-written Web.sitemap file.
    The Web.sitemap file I did not copy to my new Umbraco site but in the code I still use:

    <div id="breadcrum">
        <asp:SiteMapPath ID="SiteMapPath1" runat="server" />
    </div>

    For some reason Umbraco auto generates a Web.sitemap file somewhere.
    Unfortunately it generates not the exact code that I want (I want to change the home URL).

    Which file do I need to change to achieve this?
    When I change things to: "umbraco\xslt\templates\Breadcrumb.xslt" OR "umbraco\xslt\templates\Sitemap.xslt" there seems to be no change at all after refreshing the page. So where do I need to look?

    Thanks in advance!

  • Daniel Bardi 927 posts 2562 karma points
    Apr 04, 2011 @ 07:57
    Daniel Bardi
    1

    The sitemap should be created from an xslt macro.  If you familiar with xslt, you can insert your own <li> tag to point to the home node. (i.e. '/')

    Don't edit the templates or point to them.. they are only templast for creating new xslt files.

    Create a new xslt.. check the box to create a macro... select the sitemap template from the dropdown.

    After the xslt/macro are created, you can edit the xslt file.

    Finally, insert the macro in the template, replacing the <asp:SiteMapPath>

Please Sign in or register to post replies

Write your reply to:

Draft