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
    Jul 31, 2013 @ 15:59
    Gary
    0

    Show tag group in specific node with sub nodes

    Hello, I am new to Umbraco and would appreciate any guidance.

    I have a menu item like so

    Menu Item 1 item 1a item 1b Menu Item 2 item 2a item 2b

    I have a set of 'tag groups' for each menu Item. How do i get the tags for each section only to show within that section on the parent and child nodes?

    <xsl:if test="($currentPage/parent::*/child::*[@isDoc])">
            <div class="ssnSubNode"><strong>Mitigation Tags</strong></div>
            <ul>
                <xsl:for-each select="tagsLib:getAllTagsInGroup('ssnPortalMit')//tag">
                    <li style="padding:7px 0 0 10px;"><a href="?tag={.}"><xsl:value-of select="."/></a> (<xsl:value-of select="@nodesTagged"/>)</li>
                </xsl:for-each>
            </ul><br />
        </xsl:if>
    

    I am using this code just now which shows the tags everywhere

  • Gary 40 posts 129 karma points
    Jul 31, 2013 @ 17:50
    Gary
    0

    Any help would be greatly appreciated!

  • Gary 40 posts 129 karma points
    Jul 31, 2013 @ 17:58
    Gary
    0

    solution

    <xsl:if test="($currentPage/descendant-or-self::*/parent::*[@isDoc and @parentID='4253'])">
    
Please Sign in or register to post replies

Write your reply to:

Draft