|
Michael de Vries
|
Thursday 12 March 2009 7:05:54 am
Comment27347
Hey Noicokuna,
I didn't create the class myself, I used the eZ Flow example site, which contained that by itself. But I think your example is better, because it is more universal and it should be, because it is going to be used on multiple sites, so I am going to try your suggestion. So, I created a new class, with the identifier flash_player, and now I want to create a template, which will probably something like this (partly copied from eZ Flow file):
{def $siteurl=concat( "http://", ezini( 'SiteSettings', 'SiteURL' ) )
$attribute_file=$node.data_map.file
$video=concat( "content/download/",$attribute_file.contentobject_id,"/", $attribute_file.content.contentobject_attribute_id )|ezurl(no)
$flash_var=concat( "moviepath=", $video )}
{* Embed URL, which URL to retrieve the embed code from. *}
{set $flash_var=$flash_var|append( "&embedurl=", concat( $siteurl, "/flash/embed/", $node.object.id ) )}
{* Embed Link *}
{set $flash_var=$flash_var|append( "&embedlink=", concat( $siteurl, $node.url_alias|ezurl(no) ) )}
<object type="application/x-shockwave-flash" data="{'flash/flash_player.swf'|ezdesign(no)}" width="448" height="354">
<param name="movie" value="{'flash/flash_player.swf'|ezdesign(no)}" />
<param name="scale" value="exactfit" />
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="true" />
<param name="flashvars" value="{$flash_var}" />
<p>No <a href="http://www.macromedia.com/go/getflashplayer">Flash player</a> avaliable!</p>
</object>
Now you tell me to put this in override/templates/embed (shouldn't this be embed-inline?), but which one? This is my directory structure:
Exponential
- design
- base
- override
- templates
- embed
- embed-inline
- ezwebin_site
- override
- templates (currently empty)
- extension
- ezwebin
- design
- ezwebin
- override
- templates
- embed
- embed-inline
And the same goes for the embed.ini, which one should that be? If I search for embed.ini, I find a whole lot of them.
|