i'm new to Umbraco and used to manage the most of things.
But now I'm trying to display a Single Random Picture from the Pictures of my Media Section as "a little gimmick" (if you know what I mean)
I browsed the whole Internet, including this Forum, but none of the solutions worked, so if you could help me, i would be very thankful :)
Displaying Single Random Image from Media Section
Hello fellow people,
i'm new to Umbraco and used to manage the most of things. But now I'm trying to display a Single Random Picture from the Pictures of my Media Section as "a little gimmick" (if you know what I mean)
I browsed the whole Internet, including this Forum, but none of the solutions worked, so if you could help me, i would be very thankful :)
Sincerly,
A desperate User
Hi Peter and welcome to our :),
One way that you could do it is to use this code below.
Where the ID is the ID of folder from the media section where you want the image taking from.
If you want the user to pick a folder on a content node using the media picker then you need to use this code.
Remember to change the mediapickeralias so it match your alias for the media picker on the document type.
Hope this helps,
/Dennis
Thank you so much, i knew it would be a very simple snippet.
is working on a reply...