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??
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> <a href="{umbraco.library:NiceUrl(@id)}"> <xsl:value-of select="@nodeName"/> </a> </li> </xsl:for-each> </ul>
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??
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>
<a href="{umbraco.library:NiceUrl(@id)}">
<xsl:value-of select="@nodeName"/>
</a>
</li>
</xsl:for-each>
</ul>
</xsl:template>
Rich
Hi Rich,
Thanks for the help i got it working.
Fuji
is working on a reply...