Copied to clipboard

Flag this post as spam?

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


  • Fuji Kusaka 2203 posts 4220 karma points
    Apr 11, 2012 @ 12:38
    Fuji Kusaka
    0

    Display Folder Name and Its Sub Folders from Media Section

    HI All,

    Is it possible to display the Folder Name of a specific Folder lets say "photos" from the media section?

    I would like to be able to display all Sub Folders and its Sub Sub Folders of Folder name with id 1700 from media section. Is this possible in xslt??

    //fuji

  • Chriztian Steinmeier 2800 posts 8790 karma points MVP 8x admin c-trib
    Apr 11, 2012 @ 12:45
    Chriztian Steinmeier
    0

    Hi Fuji,

    The folder's name is the @nodeName attribute, so if you could do something simple like this to get everything out - you should be able to modify to your liking:

    <xsl:template match="/">
        <xsl:variable name="folder" select="umbraco.library:GetMedia(1700, true())" />
    
        <xsl:apply-templates select="$folder[not(error)]/descendant-or-self::Folder" />
    
    </xsl:template>
    
    <xsl:template match="Folder">
        <p><xsl:value-of select="@nodeName" /></p>
    </xsl:template>

    /Chriztian

  • Fuji Kusaka 2203 posts 4220 karma points
    Apr 11, 2012 @ 12:58
    Fuji Kusaka
    0

    Hi Chriztian,

    I did something like this and got the Name of the Folder

       <xsl:for-each select="umbraco.library:GetMedia(1700, 1)/Folder">              
          <xsl:value-of select="@nodeName"/>
       </xsl:for-each>

    But still now i need  to make those sub folders accessible by displaying the content, Its a bite confusing, since i have to make a Category and in those categories multiple Albums. 

    From there be able when clicking on the Albums getting the display on all its content. 

Please Sign in or register to post replies

Write your reply to:

Draft