I want to create a simple gallery. The user uploads photo's to a folder in the media section. He then creates a page and selects the nodeID with the mediapicker (ccGalleryFolder). This is the XSLT, but it doesn't work. Can someone explain me the mistake(s) I've made?
The call to GetMedia() should just use the $imageFolder value directly (it's the ID of the folder). Also, you should use true() or 1 as the second parameter:
Listing images from a user-selected mediafolder
I want to create a simple gallery. The user uploads photo's to a folder in the media section. He then creates a page and selects the nodeID with the mediapicker (ccGalleryFolder). This is the XSLT, but it doesn't work. Can someone explain me the mistake(s) I've made?
Thanks!
Ralph
Hi Raph,
The call to GetMedia() should just use the $imageFolder value directly (it's the ID of the folder). Also, you should use true() or 1 as the second parameter:
/Chriztian
Hi Chriztian,
Thanks for the help. It still doesn't work, but I think there is a problem with the rest of the xslt, so I will try to fix that first.
Ralph
Took me a while, but figured it out. The problem was I didn't know how to pass a nodeID to a macro which is, in fact, pretty easy.
<umbraco:Macro imageFolder="[#ccGalleryFolder]" Alias="Gallery" runat="server"></umbraco:Macro>
ccGallery is the alias of a mediaPicker in the DocType which selects the imagefolder in the Mediasection.
Works like a charm.
is working on a reply...