Copied to clipboard

Flag this post as spam?

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


  • syn-rg 282 posts 425 karma points
    Mar 01, 2012 @ 07:37
    syn-rg
    0

    Multi node picker: combine child nodes in list if both share related links

    Is it possible to create a child nodes list, and if two or more of the child nodes have the same related links picked by the Multi Node picker, then they will be combined into a one link.

    My idea would be that the combined link would link to another page with thumbnails of all the related links for that particular "client".

    Can anyone suggest a possible way of achieving this? Below is my very basic theory on how it might work.
    I'm guessing a "count" could also be used?

    Cheers, JV

    <xsl:choose>
    <
    xsl:when test="$currentPage/groupedLinks/MultiNodePicker/nodeId ??string(nationalClient) = '1'??">
    <li class="national_clients">
    <a href="{umbraco.library:NiceUrl(@id)} ??Combined link??" title="{@nodeName}">
    <img src="{concat(substring-before(clientLogo,'.'), '_thumb_120.jpg')}"/>
    </a>
    </li>
    </xsl:when>
    <xsl:otherwise>
    <li class="national_clients">
    <a href="{umbraco.library:NiceUrl(@id)}" title="{@nodeName}">
    <img src="{concat(substring-before(clientLogo,'.'), '_thumb_120.jpg')}"/>
    </a>
    </li> </xsl:otherwise>
    </xsl:choose>
Please Sign in or register to post replies

Write your reply to:

Draft