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.
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
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.
is working on a reply...