Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • trfletch 598 posts 604 karma points
    Sep 16, 2010 @ 15:50
    trfletch
    0

    Highslide image XSLT macro not rendering in Rich Text Editor

    Hi All,

    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>
  • trfletch 598 posts 604 karma points
    Sep 16, 2010 @ 16:37
    trfletch
    0

    Ok after searching around it seems my issue may be a bug with Umbraco that is explained in the following post:

    http://our.umbraco.org/forum/ourumb-dev-forum/bugs/9824-No-macro-content-available-for-WYSIWYG-editing

    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?

     

Please Sign in or register to post replies

Write your reply to:

Draft