Copied to clipboard

Flag this post as spam?

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


  • Muhammad hussain 33 posts 53 karma points
    Nov 18, 2012 @ 21:25
    Muhammad hussain
    0

    Load Child Pages content from parrent page using Xslt

    Hi All,

    I have problem in loading all Child pages Conten  means data in their respective section on one page using loop or some other ways . i am useing lastest umbacro version.

     

    thanks in advance.

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Nov 24, 2012 @ 02:34
    Lee Kelleher
    1

    Hi Muhammad,

    Not sure if you have an existing XSLT macro, or want to create a new one.  If it's a new one, then try one of the pre-defined templates from the Create window's dropdown list.

    If you have an existing XSLT macro, you can try including this snippet:

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

    You can then customise the HTML as you desire.

    Cheers, Lee.

Please Sign in or register to post replies

Write your reply to:

Draft