Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello, I am using this xslt to write a list of nodes (A,B,C etc). The nodes that have sub nodes (organisations beginging with A,B,C etc) are linking to the results page - the nodes with no sub nodes produce a dead link. <xsl:variable name="orgNode" select="umbraco.library:GetXmlNodeById(4257)"/><xsl:variable name="templateID" select="4841" /><xsl:variable name="orgType" select="umbraco.library:Request('type')" /> Find organisation alphabetically<br /><br /><xsl:for-each select="$orgNode/*[@isDoc][@template = $templateID]"> <xsl:sort select="@nodeName" data-type="text" order="ascending"/> <a href="{umbraco.library:NiceUrl(@id)}?type={$orgType}" style="float:left; margin: 0 20px 10px 0;"> <xsl:if test="not(*[@isDoc and contains(portalOrgType,$orgType)])"> <xsl:attribute name="style">color:#ccc;float:left; margin: 0 20px 10px 0;cursor:text;</xsl:attribute><xsl:attribute name="href">#</xsl:attribute> </xsl:if> <xsl:value-of select="@nodeName"/> </a></xsl:for-each>How can i prouce a 'Show all' link that would list every single sub node on the results page?Any help greatly appreciated. Thanks for looking
solved
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
how to create a 'show all'
Hello,
I am using this xslt to write a list of nodes (A,B,C etc). The nodes that have sub nodes (organisations beginging with A,B,C etc) are linking to the results page - the nodes with no sub nodes produce a dead link.
<xsl:variable name="orgNode" select="umbraco.library:GetXmlNodeById(4257)"/>
<xsl:variable name="templateID" select="4841" />
<xsl:variable name="orgType" select="umbraco.library:Request('type')" />
Find organisation alphabetically<br /><br />
<xsl:for-each select="$orgNode/*[@isDoc][@template = $templateID]">
<xsl:sort select="@nodeName" data-type="text" order="ascending"/>
<a href="{umbraco.library:NiceUrl(@id)}?type={$orgType}" style="float:left; margin: 0 20px 10px 0;">
<xsl:if test="not(*[@isDoc and contains(portalOrgType,$orgType)])">
<xsl:attribute name="style">color:#ccc;float:left; margin: 0 20px 10px 0;cursor:text;</xsl:attribute><xsl:attribute name="href">#</xsl:attribute>
</xsl:if>
<xsl:value-of select="@nodeName"/>
</a>
</xsl:for-each>
How can i prouce a 'Show all' link that would list every single sub node on the results page?
Any help greatly appreciated.
Thanks for looking
solved
is working on a reply...