Copied to clipboard

Flag this post as spam?

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


  • Floffy 26 posts 33 karma points
    Jan 23, 2012 @ 17:01
    Floffy
    0

    Getmedia returns nothing

    Hi, running umbraco 4.7.0 with a MySQL database, .Net 4.0

    trying to show dokuments from the media secton

    it seems the GetMedia() returns nothing?

    folderid is OK, and folde does contain files

    any ideas?

    Code snippet:

    <xsl:param name="folderid" select="/macro/folder/Folder/@id" />
    <xsl:template match="/">
      <xsl:if test="$folderid != ''">
        ID=<xsl:value-of select="$folderid"/><br/>
        <xsl:variable name="folder" select="umbraco.library:GetMedia($folderid,1)"/>
        Folder=<xsl:copy-of select="$folder"/><br/>
      </xsl:if>
    </xsl:template>


  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Jan 23, 2012 @ 17:08
    Jeroen Breuer
    0

    Maybe this topic can help you: http://our.umbraco.org/forum/developers/xslt/27854-Help-with-mediapicker. A lot is explained there.

    Jeroen

Please Sign in or register to post replies

Write your reply to:

Draft