Copied to clipboard

Flag this post as spam?

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


  • Graeme Paul 44 posts 64 karma points
    Mar 03, 2011 @ 17:49
    Graeme Paul
    0

    Importing Flash in Umbraco 4.6.1 via macro parameters

    Hey guys, i'm having issues importing flash into Umbraco.

    Firstly ive tried to import via the tinymce but keep getting the [tidy error]. As we are using the swf object for all of our current static pages I thought it may be worth going to down the macro route... I followed the post called inseting flash by end users and uploaded my flash to media folder.

    However I cant seem to get my macro parameters to work, and i have changed the alias names just incase of duplicating parameter names.I have even tried to put a show amount of news article parameters like on umbraco tv, but still am unable to get it to work.

    Are macro parameters working in umbraco 4.6.1? Below is the screen I get once I have imported the macro to tinymca editor.

    Below is the code in Xslt.

     

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE xsl:Stylesheet [ <!ENTITY nbsp "&#x00A0;"> ]>
    <xsl:stylesheet
        version="1.0"
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        xmlns:msxml="urn:schemas-microsoft-com:xslt"
        xmlns:umbraco.library="urn:umbraco.library"
        exclude-result-prefixes="msxml umbraco.library">
    <xsl:output method="html" omit-xml-declaration="yes"/>
    <xsl:param name="currentPage"/>
      <xsl:variable name="videopath" select="/macro/video" />
      <xsl:variable  name="videowidth" select="/macro/width" />
      <xsl:variable name="videoheight" select="/macro/height" />
    <!-- ============================================================= -->
    <xsl:template match="/">
    <div id="container"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</div>
    <script type="text/javascript">
    <![CDATA[
    // Previous JavaScript code
    var path = "]]><xsl:value-of select="$videopath" /><![CDATA[";
    var videowidth = "]]><xsl:value-of select="$videowidth" /><![CDATA[";
    var videoheight = "]]><xsl:value-of select="$videoheight" /><![CDATA[";
    // Rest of JavaScript code
    var s1 = new SWFObject(path,"Pindar SWF",videowidth,videoheight,"9","#FFFFFF");
    s1.addParam("allowfullscreen","true");
    s1.addParam("allowscriptaccess","always");
    s1.addParam("wmode","transparent");
    s1.write("container");
    ]]>
    </script>
    </xsl:template>
    <!-- ============================================================= -->
    </xsl:stylesheet>

     

    If anyone can help me solve this i would be very grateful.

    Cheers

    Graeme

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Mar 03, 2011 @ 21:42
    Jan Skovgaard
    0

    Hi Paul

    And you have added the macro parameters on the macro itself not just in the XSLT?

    /Jan

     

  • Graeme Paul 44 posts 64 karma points
    Mar 04, 2011 @ 13:32
    Graeme Paul
    0

    Yes I have Jan, hopefully what i have done below is correct?

     

  • Graeme Paul 44 posts 64 karma points
    Mar 16, 2011 @ 12:33
    Graeme Paul
    0

    I fixed this issue, just to note make sure you have umbraco.macroengines  umbraco.macroengines.legacy and umbraco.macrorebderings are in the bin folder of project.

Please Sign in or register to post replies

Write your reply to:

Draft