hi, we are experimenting with this with a banner media type that has the digibiz advanced media picker and a text string. when trying to use it in a xslt macro as a mediaCurrent parameter we are recieving the following xml
This problem seems unrelated to the Digibiz Advanced Media Picker. The only thing DAMP does is call umbraco.library.getMedia and store that data in umbraco.config file.
The problem you're having with the media from a macro is something I've had before. Try this:
unclosed image tag
hi, we are experimenting with this with a banner media type that has the digibiz advanced media picker and a text string. when trying to use it in a xslt macro as a mediaCurrent parameter we are recieving the following xml
unfortunately the <img node is not closed, making it impossible to select the umbracofile, or am i doning something wrong?
Hi David
I have come accross this before and must remember to submit an issue about it on codeplex. You're using Umbraco v4.6.1, right?
You should be able to fetch the image path from umbracoFile though. What does your XSLT code for doing this look like?
/Jan
Thanks! we're on 4.5.2. This is the xslt. $media returns the snippet posted above. bannerImage returns nothing
<xsl:param name="currentPage"/>
<xsl:variable name="media" select="/macro/media"/>
<xsl:template match="/">
<xsl:if test="$media">
<p>media <xsl:copy-of select="$media" /></p>
<p>bannerImage <xsl:copy-of select="$media/banner/bannerimage/damp/mediaitem/umbracofile" /></p>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
Hi David,
This problem seems unrelated to the Digibiz Advanced Media Picker. The only thing DAMP does is call umbraco.library.getMedia and store that data in umbraco.config file.
The problem you're having with the media from a macro is something I've had before. Try this:
So don't put the macro data in a variable, but call it directly. Worked for me last time.
Jeroen
is working on a reply...