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

    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,


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

    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/>

    /Kim A

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

    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?



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

    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.


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

    Hi Tom,

    thank you for link!


Please Sign in or register to post replies

Write your reply to: