Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi there,
I am using Umbraco 4.7.2 SQL2008
I wish to upload and display a list of documents/media files on a product details page.
Admin user would upload one or more documents for a product
Visitor would see those documents displayed in a list with ability to click and download
Thanks!Martyn
Here is a razor script called ImageGallery that I wrote last night.
@using umbraco.MacroEngines@foreach (var item in Model.MediaById(Model.RelatedMedia).Children){ <p><img src="@item.umbracoFile" alt="@item.Name" /></p>}
How it works is as follows:
Place a Media Picker Property on the Document Type for the page called RelatedMedia that will show the image gallery.
Create a Folder in the Media Section and add your images to it.
Then update the Related Media Property and open the browser to the url for the page to test it.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Upload and List Documents
Hi there,
I am using Umbraco 4.7.2 SQL2008
I wish to upload and display a list of documents/media files on a product details page.
Admin user would upload one or more documents for a product
Visitor would see those documents displayed in a list with ability to click and download
Thanks!
Martyn
Here is a razor script called ImageGallery that I wrote last night.
@using umbraco.MacroEngines
@foreach (var item in Model.MediaById(Model.RelatedMedia).Children)
{
<p><img src="@item.umbracoFile" alt="@item.Name" /></p>
}
How it works is as follows:
Place a Media Picker Property on the Document Type for the page called RelatedMedia that will show the image gallery.
Create a Folder in the Media Section and add your images to it.
Then update the Related Media Property and open the browser to the url for the page to test it.
is working on a reply...