Copied to clipboard

Flag this post as spam?

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


  • Gary 40 posts 129 karma points
    Mar 19, 2014 @ 13:30
    Gary
    0

    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

  • Gary 40 posts 129 karma points
    Mar 19, 2014 @ 16:33
    Gary
    100

    solved

Please Sign in or register to post replies

Write your reply to:

Draft