Copied to clipboard

Flag this post as spam?

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


  • Lex Godthelp 15 posts 99 karma points
    Feb 06, 2015 @ 10:30
    Lex Godthelp
    0

    Comparing tags with other nodes with one or multiple same tags using XSLT

    Hello Guys,

    I got a question for you:

    I have a currentPage called Blog which contains a couple of tags (Data Type tags). I display these by using:

    <xsl:if test="string-length($currentPage/tags) > 0">
        <xsl:variable name="tags" select="umbraco.library:Split($currentPage/tags,',')" />
        <xsl:for-each select="$tags//value">
                <a href="" title="Bekijk hier het overzicht van content over het onderwerp '{current()}'"><button class="btn btn-default hidden-xs"><xsl:value-of select="current()"/></button></a>

        </xsl:for-each>
    </xsl:if>

    Now i would like to compare all other blogs and see which blogs contain one or multiple tags that match the currentPage tags.

    How would i go about doing this? I found another topic similar to this one but i just couldnt figure it out. Any help would be much appreciated.

Please Sign in or register to post replies

Write your reply to:

Draft