Copied to clipboard

Flag this post as spam?

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


  • Raheel 62 posts 81 karma points
    Sep 16, 2010 @ 02:22
    Raheel
    0

    Upload Media & Show Media

    Hi Guys...

    I am looking for a simple solution to:

    1. Upload Images in image folder, videos in video folder and audios in audio folder under MEDIA.
    I have already created folders - Images, Videos, Audios in the Media Section.

    I want a Upload option so that I can upload files and choose which folder to save in.

    2. I have created a property in my document type to choose media - that works.

    3. Now I need to display that media type into my template - I am lost here.

     

    Please tell me what's the solution?

    Thanks
    Raheel

  • Raheel 62 posts 81 karma points
    Sep 16, 2010 @ 02:59
    Raheel
    0

    All good..

    I found out..

     

    I went into XSLT and created one with a macro in clean.

    Added:

    <xsl:template match="/">

    <xsl:variable name="media" select="umbraco.library:GetMedia($currentPage/pageBannerImage, 0)" />
    <img src="{$media/umbracoFile}" alt="{$media/altText}" />

    </xsl:template>

     

    .. then added the macro in the template - Started working.

     

Please Sign in or register to post replies

Write your reply to:

Draft