3 votes

Insert Flash File

This is something that keeps coming up on the forums, so here's a small package that allows end-users to insert flash content from within the editor.

The plugin installs swfobject.js (version 2.2) and an xslt macro that takes the follow parameters

  • Choose Video: (mediaCurrent) - allows end user to pick swf file from the media library
  • Video ID: Required.  This is used by swfobject to know which div to replace with the flash content.  It is included as a parameter instead of being hardcoded to allow for more than one flash file on a page
  • Width (pixels)
  • Height (pixels)

 

Note:
This macro inserts a script tag just before the div to be replaced with flash content.  For best performance it is advised to remove this and put the script tag inside the head of your templates.

<script type="text/javascript" src="/scripts/swfobject.js"></script>

The chosen options for "render macro content in editor" don't seem to be respected by the package creator,so it is advised to disable rendering in editor manually for this macro.

SwfObject: http://code.google.com/p/swfobject

Archived files

Documentation

Source code

Package owner

dandrayne

dandrayne

dandrayne has 2262 karma points

Package Compatibility

This package is compatible with the following versions as reported by community members who have downloaded this package:
Untested or doesn't work on Umbraco Cloud
8.2.x (untested)
8.1.x (untested)
8.0.x (untested)
7.15.x (untested)
7.14.x (untested)
7.13.x (untested)
7.12.x (untested)
7.11.x (untested)
7.10.x (untested)
7.9.x (untested)
7.8.x (untested)
7.7.x (untested)
7.6.x (untested)
7.5.x (untested)
7.4.x (untested)
7.3.x (untested)
7.2.x (untested)
7.1.x (untested)
7.0.x (untested)
6.1.x (untested)
6.0.x (untested)

You must login before you can report on package compatibility.

Package Information

  • Package owner: dandrayne
  • Created: 16/10/2009
  • Current version 1.0
  • License MIT
  • Downloads: 1765