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
    Aug 27, 2013 @ 13:16
    Gary
    0

    Displaying all media types from a certain node with a certain tag

    Hello,

    I would like to display media from a certain folder and sub folder with specific tags. I have it working displaying content nodes but can't get the same desired results with media using this xslt. I don't think i'm far away from a solution but any guidance would be very much appreciated.

    <xsl:variable name="portalMedia" select="$currentPage/ancestor-or-self::*[@isDoc and @parentId = '4814']"/>
    
            <ul class="library">
    
                <xsl:if test="$portalMedia !=''">
                    <xsl:variable name="topNode" select="umbraco.library:GetMedia($portalMedia,1)"/>
                    <xsl:if test="count($topNode/Folder//*[showInLibrary = 1]) > 0">
                        <xsl:for-each select="$topNode/Folder//*[@isDoc and (umbraco.library:Request('tag') != '' and (contains(ssnTagsClimate,umbraco.library:Request('tag'))))]">
                            <xsl:sort select="@nodeName" order="ascending" />
                            <xsl:if test="./umbracoFile != ''">
                                <xsl:if test="showInLibrary = '1'">
    
                                    <li class="nodeName libraryItem">
    
                                        <a href="{./umbracoFile}" target="_blank" style="paddin-left: 5px;">
                                            <p id="libItem"><xsl:value-of select="@nodeName"/></p>
                                        </a>
                                    </li>
                                </xsl:if>
                            </xsl:if>
                        </xsl:for-each>
                    </xsl:if>
    
                </xsl:if>
            </ul>
    

    Thanks for looking

    Gary

Please Sign in or register to post replies

Write your reply to:

Draft