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 have a website running 4.5.2 (using the old XSLT schema). I have created the following XSLT to display highslide images (http://highslide.com/) on the website. I want the user to be able to insert the macro into the rich text editor then they select the full size image and thumbnail image (I am using mediaCurrent macro property to select these images). This is all working fine except for in the richtext editor it is displaying:
No macro content available for WYSIWYG editing
I'm not expecting it to have highslide fully working within the Rich Text Editor but I would at least like it to display the thumbnail so they can position it and get a feel for what it is going to look like. Is there some way I can force the rich text editor to display the thumbnail rather than the text above? Also why is it not rendering the macro in the first place, it's not exactly a complicated piece of code. This is my XSLT:
<xsl:param name="currentPage"/><xsl:variable name="largeImage" select="/macro/largeImage/node"/><xsl:variable name="thumbnailImage" select="/macro/thumbnailImage/node"/><xsl:template match="/"><a class="highslide" onclick="return hs.expand(this)"><xsl:attribute name="href"> <xsl:value-of select="$largeImage/data[@alias='umbracoFile']" /></xsl:attribute><img><xsl:attribute name="src"> <xsl:value-of select="$thumbnailImage/data[@alias='umbracoFile']" /></xsl:attribute><xsl:attribute name="alt"> <xsl:value-of select="$thumbnailImage/@nodeName" /></xsl:attribute></img></a></xsl:template>
Ok after searching around it seems my issue may be a bug with Umbraco that is explained in the following post:
I see that there is a patch on Codeplex, number 6267, I have downloaded the macro.cs file from Codeplex but I'm not sure where I put it? Can anyone help me with this one?
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted