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 " "> ]> <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.
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.
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.
If anyone can help me solve this i would be very grateful.
Cheers
Graeme
Hi Paul
And you have added the macro parameters on the macro itself not just in the XSLT?
/Jan
Yes I have Jan, hopefully what i have done below is correct?
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.
is working on a reply...