Copied to clipboard

Flag this post as spam?

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


  • Mitali 13 posts 33 karma points
    Jan 10, 2011 @ 11:54
    Mitali
    0

    Read the content of media folder

    Hello,

    1.I have use multiple file uploader package.There i have uploaded images,html files,pdf etc.

    2.I want to show these files in main site there i can read the same file.

    Please help me

     

    Thanks & Regards,

    Mitali

     

  • Yannick Smits 321 posts 718 karma points
    Jan 10, 2011 @ 12:04
    Yannick Smits
    0

    here is an xslt example of getting all the images inside a media folder with id 1161:

    <xsl:variable name="Images"  select="umbraco.library:GetMedia(1161, 1)">

    <ul class="gallery">
    <xsl:for-each select="$Images//Image">
        <xsl:if test="@id != '' ">
            <li>
               <img src="{umbraco.library:GetMedia(@id, 1)/umbracoFile}" />
            </li>
        </xsl:if>
    </xsl:for-each>
    </ul>

  • Kim Andersen 1447 posts 2197 karma points MVP
    Jan 20, 2011 @ 19:21
    Kim Andersen
    1

    Hi Mitali.

    Maybe you should check out the new Media Iterator package that's just been released a coupl of days ago. I haven't tried it out yet, but it looks like a package that would fit your needs :)

    /Kim A

Please Sign in or register to post replies

Write your reply to:

Draft