Skip to main content

Dynamic publish flash with Sourcerer in Joomla

08 July 2011


Using the same example as last time, the first thing we need to do is generate the embed code for dynamic publishing.

So, going to the SWFObject 2 HTML and JavaScript generator, we again fill in the vars, parms and attributes, and select dynamic publishing.

This is what I filled in.

swfobject-generator2

 

Now when you hit the "generate" button, this is the html that you get:

{article Dynamic publish of flash - generated html}{title} {text} {/article}

 

So, waht we're going to do now, is load the js that you see in the header (swfobject plus some flashvars) in the header of our joomla content page and place the myContent div in the article itself, using Peter's example on his forum.

Fot that, we change the html code as generated above a bit to the following:

{article Dynamic publish of flash - sourcecode}{title} {text}{/article}

  • I have added the relative path to the media manager (images/stories/flash/yourmoviename) to the files.
  • I also added another surrounding div to do some extra styling
  • You need to copy and paste this code in the SOurcerer edit window, between the proper tags.

 


Gerelateerde links

Onderwerp

Tag

flash
Sourcerer

Hits

1671