Copied to clipboard

Flag this post as spam?

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


  • ss 16 posts 36 karma points
    Aug 18, 2010 @ 08:33
    ss
    0

    Navigate between previous and next child

    helllo all,

        I want to navigate between the previous and next child node of node at level 4.. i want to achieve this using xslt.. plz any coding ...

    eg:

        Root

             Page 1

                Subpage1

                     child1

                         subchild 1

                         subchild 2

                          subchild 3

    i want to navigate between the subchild of child 1 on previous and next button click..

     

     

  • wolulcmit 357 posts 693 karma points
    Aug 18, 2010 @ 09:08
    wolulcmit
    0

    something like this should do the trick:

    <xsl:if test="count($currentPage/preceding-sibling::node) != 0">
    <a class="skip" href="{umbraco.library:NiceUrl($currentPage/preceding-sibling::node[1]/@id)}">&lt; previous</a>
    </xsl:if>

    <xsl:if test="count($currentPage/following-sibling::node) != 0">
    <a class="skip" href="{umbraco.library:NiceUrl($currentPage/following-sibling::node[1]/@id)}">next &gt;</a>
    </xsl:if>

    - Tim

Please Sign in or register to post replies

Write your reply to:

Draft