Copied to clipboard

Flag this post as spam?

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


  • liquid_katfish 7 posts 20 karma points
    May 05, 2009 @ 05:35
    liquid_katfish
    0

    navigation to start from the 2nd level

    Im new to Umbraco and i have been working on some navigation and i want the navigation to start from the 2nd level.

    i have been trying everything.. this is the original code i have been working from to try and change to work but i just cant get it.



    ]>

    version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxml="urn:schemas-microsoft-com:xslt"
    xmlns:umbraco.library="urn:umbraco.library" xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon" xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes" xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath" xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions" xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings" xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets"
    exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets ">
















    Thanks for the Help !!!! i need it

  • Paul Blair 466 posts 731 karma points
    May 05, 2009 @ 07:35
    Paul Blair
    0

    try this:

  • liquid_katfish 7 posts 20 karma points
    May 06, 2009 @ 01:31
    liquid_katfish
    0

    Yes that did work but it shows all of the 2nd level nodes, and i just want each section to show instead of the whole lot ..
    Im not sure if that makes sense but thats the only way i know how to explain it.

    Thanks

  • Paul Blair 466 posts 731 karma points
    May 06, 2009 @ 02:24
    Paul Blair
    0

    OK, what you may need instead is:


    But I'm not sure I have understood your requirement properly. If this doesn't work, can you post an example site structure and then what nodes you want to be returned.

    Cheers
    Paul

  • liquid_katfish 7 posts 20 karma points
    May 06, 2009 @ 02:59
    liquid_katfish
    0

    That code returned an error,

    Here is an example of my navigation :
    (this is the secondary navigation on my site)

    Top level - Home
    - 2nd
    - 2nd
    - 2nd
    - 3rd
    - 3rd
    - 4th
    - 4th
    - 3rd
    - 2nd

    Top level - About
    - 2nd
    - 2nd
    - 2nd
    - 3rd
    - 4th
    - 2nd

    So this is what my navigation looks like atm and i just wanted the 2nd level and onwards like this

    - 2nd
    - 2nd
    - 2nd
    - 3rd
    - 3rd
    - 4th
    - 4th
    - 3rd
    - 2nd



    - 2nd
    - 2nd
    - 2nd
    - 3rd
    - 4th
    - 2nd

    I hope this makes more sense i really appreciate the help !!!!!!!!!!!!!!!

  • liquid_katfish 7 posts 20 karma points
    May 19, 2009 @ 06:31
    liquid_katfish
    0

    Please is anyone able to help me with this problem ??

  • Paul Blair 466 posts 731 karma points
    May 19, 2009 @ 12:24
    Paul Blair
    0

    Hey, I missed your reply back on the 6th - Sorry about that.

    I'm still not sure what it is you are after. At another guess it might be:


    Have you seen this page:
    http://umbraco.org/documentation/books/xslt-basics/xpath-axes-and-their-shortcuts

    It is a very good explanation of how to move around the XML node structure.

    If the above still doesn't work could you try posting an image of your content structure as I may be missing something obvious

    Cheers

  • dandrayne 1138 posts 2262 karma points
    May 19, 2009 @ 12:33
    dandrayne
    0

    Not pretty, but it works

    Edit: ...Mostly!

    [code]

    ]>

    version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxml="urn:schemas-microsoft-com:xslt" xmlns:umbraco.library="urn:umbraco.library" exclude-result-prefixes="msxml
    umbraco.library">


















    [/code]

  • liquid_katfish 7 posts 20 karma points
    May 20, 2009 @ 00:34
    liquid_katfish
    0

    Thank you everone that helped with this problem !!!

    ddrayne you code worked !!!! im so excited !! thank you so much

Please Sign in or register to post replies

Write your reply to:

Draft