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
Version 8.18.x (untested)

You must login before you can report on package compatibility.

Previously reported to work on versions:

Package Information

  • Package owner: dandrayne
  • Created: 16/10/2009
  • Current version 1.0
  • License MIT
  • Downloads on Our: 1.8K