Copied to clipboard

Flag this post as spam?

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


  • Patrick 33 posts 82 karma points
    Aug 09, 2011 @ 11:14
    Patrick
    0

    Default xslt sitemap

    I have created a site structure in which my sitemap is on another level than my nodes which I would like to see within my sitemap. Like this:

     

    Content

    + Navigation

    + News

    + Members

    Sitemap

     

    The default xslt of the sitemap, generated by Umbraco selects $currentPage/ancestor-or-self::* [@isDoc and @level=1]

    Problem is my Sitemap node can never retrieve the other nodes through currentPage/ancestor-or-self.

    Being farely new to Umbraco and xslt I hope somebody can help me to rewrite this, so it starts building the sitemap from the root node.

     

    Nay help is welcome, greetings, Patrick.

  • Rich Green 2246 posts 4008 karma points
    Aug 09, 2011 @ 11:18
    Rich Green
    0

    Hey Partick,

    Could you post a screenshot of your content structure?

    Rich

  • Patrick 33 posts 82 karma points
    Aug 09, 2011 @ 11:23
    Patrick
    0

    My content structure:

  • Rich Green 2246 posts 4008 karma points
    Aug 09, 2011 @ 11:27
    Rich Green
    0

    Hey Partick,

    I thought that could be the case, unless you have a specific reason to have your content structured like above I would strongly consider restructuring your content like this:

    -Content

    - Home

    - Beroepsgroep

    - Nieuwsbanner

    - Nieuws

    Etc.

    This is how the sample xslt's expect your content structure to be, and if you restructure like this you will find the sitemap (and many other sample XSLT files) work as expected.

    Regards


    Rich

  • Patrick 33 posts 82 karma points
    Aug 09, 2011 @ 11:34
    Patrick
    0

    Hi Rich,

    Maybe I don't fully understand, but the structure as typed above seems to be the same as the one in my screenshot.
    Or is it the solution to remove the Sitemap from the current location and have it integrated within the structure?

    Thanks, Patrick

  • Rich Green 2246 posts 4008 karma points
    Aug 09, 2011 @ 11:37
    Rich Green
    0

    Hey Patrick,

    Sorry, the forum broke the formattin.

    Let me try again:

    -Content

    --- Home

    --------- Beroepsgroep

    --------- Nieuwsbanner

    --------- Nieuws

    --------- Etc.

     

    Rich

  • Patrick 33 posts 82 karma points
    Aug 09, 2011 @ 11:38
    Patrick
    0

    Clear, I'm going to restructure, thanks for your help!

    Patrick

Please Sign in or register to post replies

Write your reply to:

Draft