Copied to clipboard

Flag this post as spam?

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


  • Fuji Kusaka 2203 posts 4220 karma points
    Feb 09, 2011 @ 18:50
    Fuji Kusaka
    0

    Listing Sub pages of 2 different nodes in a homepage

    How do i get 2 different News Items with different parent Node to be displayed using their respective macros on a homepage by using the list sub pages from current page property??

  • Rich Green 2246 posts 4008 karma points
    Feb 09, 2011 @ 19:34
    Rich Green
    0

    Hey,

    You can't really as they are not sub pages from the current page, sounds like you need to use the "List sub pages from a changeable source" xslt template, then you can list the sub content like this

    <!-- Don't change this, but add a 'contentPicker' element to -->
    <!-- your macro with an alias named 'source' -->
    <xsl:variable name="source" select="/macro/source"/>

    <xsl:template match="/">

    <!-- The fun starts here -->
    <ul>
    <xsl:for-each select="umbraco.library:GetXmlNodeById($source)/* [@isDoc and string(umbracoNaviHide) != '1']">
      <li>
        <href="{umbraco.library:NiceUrl(@id)}">
          <xsl:value-of select="@nodeName"/>
        </a>
      </li>
    </xsl:for-each>
    </ul>

    </xsl:template>

    Rich

  • Fuji Kusaka 2203 posts 4220 karma points
    Feb 10, 2011 @ 05:23
    Fuji Kusaka
    0

    Hi Rich,

     

    Thanks for the help i got it working.

     

    Fuji

  • 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