Copied to clipboard

Flag this post as spam?

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


  • Bram Loquet 72 posts 102 karma points
    Jun 08, 2010 @ 10:20
    Bram Loquet
    0

    combine getTagsFromNode and getAllTagsInGroup?

     

    Is there a way to combine getTagsFromNode and getAllTagsInGroup without comparing the whole list of TagsInGroup with the TagsFromNode?

    <xsl:variable name="tagsFromThisNode" select="tagsLib:getTagsFromNode(@id)" />
    <xsl:variable name="tagsFromGroup" select="tagsLib:getAllTagsInGroup('whatever')/tags/tag" />

     

     

  • Bram Loquet 72 posts 102 karma points
    Jun 11, 2010 @ 13:59
    Bram Loquet
    1

    found out that $tags/tags/tag [@group = 'Categories'] will do the thrick

                <xsl:variable name="tags" select="tagsLib:getTagsFromNode(@id)" />
                    <xsl:for-each select="$tags/tags/tag [@group = 'Categories']">
                        <a href="{umbraco.library:NiceUrl(@id)}?category={.}" rel="tag" title="{.}">
                            <xsl:value-of select="."/>
                        </a>
                        <xsl:if test="position() != last()">, </xsl:if>
                    </xsl:for-each>
Please Sign in or register to post replies

Write your reply to:

Draft