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
I'm trying to do exactly this: http://our.umbraco.org/forum/developers/xslt/2762-Using-mediaCurrent-on-image-folder
but on the new schema. If I point my macro parameter to an image, I get output. if I point it to a folder, I get nothing.
I think this is the root of my problems:
<xsl:variable name="MediaNodeId" select="/macro/MediaNode/node/@id"/>
I imagine I can't use /node/@id to get the id of the folder I'm selecting any more.
Thanks for any suggestions.
Hi,
Try replacing /node/ with /Folder/ or /*/ - in the new schema node is replaced with the alias of the media type
<xsl:variablename="MediaNodeId"select="/macro/MediaNode/Folder/@id"/>
-Tom
Thanks Tom, that worked perfectly.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
MediaCurrent macro parameter on a folder new schema?
I'm trying to do exactly this: http://our.umbraco.org/forum/developers/xslt/2762-Using-mediaCurrent-on-image-folder
but on the new schema. If I point my macro parameter to an image, I get output. if I point it to a folder, I get nothing.
I think this is the root of my problems:
<xsl:variable name="MediaNodeId" select="/macro/MediaNode/node/@id"/>
I imagine I can't use /node/@id to get the id of the folder I'm selecting any more.
Thanks for any suggestions.
Hi,
Try replacing /node/ with /Folder/ or /*/ - in the new schema node is replaced with the alias of the media type
<xsl:variablename="MediaNodeId"select="/macro/MediaNode/Folder/@id"/>
-Tom
Thanks Tom, that worked perfectly.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.