Copied to clipboard

Flag this post as spam?

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


  • billiblu 37 posts 62 karma points
    Jan 13, 2011 @ 19:36
    billiblu
    0

    Generate list brothers pages

    I would like to create a list of all pages stored in the same node of current page.

    For example:

    - News List

            * News number 1

            * News number 2

            * News number 3

    When i see the page "News number 2" i want to create a list with "News number 1" and "News number 3".

    I am using 4.5.2 for .Net 3.5 version.

    With previous version I had no problem.

    Please help me.

    Thank you very much,

    Davide

  • Kim Andersen 1447 posts 2197 karma points MVP
    Jan 13, 2011 @ 20:15
    Kim Andersen
    0

    Hi Davide.

    You should be able to accomplish this with the following piece of code:

    <xsl:for-each select="$currentPage/../*[@isDoc and @id!=$currentPage/@id]">
       <a href="{umbraco.library:NiceUrl(@id)}"><xsl:value-of select="@nodeName"/></a><br/>
    </xsl:for-each>

    /Kim A

  • billiblu 37 posts 62 karma points
    Jan 13, 2011 @ 22:04
    billiblu
    0

    Hi Kim,

    thank you very much!

    I have not found an explanation in umbraco documentation.

    Can you tell me where I can read documentation about xslt on version 4.5?

    bye,

    Davide

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Jan 13, 2011 @ 22:07
    Tom Fulton
    0

    Hi Davide,

    Check out this wiki article that explains the differences between the 4.0 and 4.5 schemas.  Also includes a page with some examples.

    http://our.umbraco.org/wiki/reference/xslt/45-xml-schema

    -Tom

  • billiblu 37 posts 62 karma points
    Jan 13, 2011 @ 23:00
    billiblu
    0

    Hi Tom,

    thank you for link!

    Davide

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies