I am stuggeling to get this working, any help would help.
I need to get this to work. I know ther is a lot in the forum about this issue, i have searced a lot and trying all sorts of solutions. I just cant get it to work.
I have created mediaPicker in the document type with the alias as mediaFolderID.
When you use /macro/mediaFolder you get XML back - when you're using a Media Picker, you only get the id, so that's what you need to feed the GetMedia() function:
<xsl:variable name="mediaFolder" select="$currentPage/mediaFolderID" />
<xsl:template match="/">
<xsl:if test="normalize-space($mediaFolder)">
<xsl:variable name="media" select="umb:GetMedia($mediaFolder, true())" />
<!-- If no errors, this will run the Folder template below -->
<xsl:apply-templates select="$media[not(error)]" />
</xsl:if>
</xsl:template>
MediaPicker - Get value from site parameter
Hi
Umbraco ver 4.7.2
I am stuggeling to get this working, any help would help.
I need to get this to work. I know ther is a lot in the forum about this issue, i have searced a lot and trying all sorts of solutions. I just cant get it to work.
I have created mediaPicker in the document type with the alias as mediaFolderID.
When i use the xslt parameter like this it is working great.
Here is the complete xslt code:
Tanks in advance
Hi René,
When you use /macro/mediaFolder you get XML back - when you're using a Media Picker, you only get the id, so that's what you need to feed the GetMedia() function:
/Chriztian
Tanks a lot.
It is working.. and i am learning.
Kindly René
is working on a reply...