Friday 14 September 2007 6:04:39 am
Hello,
I have a instance of eZ in cluster mode, so my images served with the index_cluster.php. All work fine. But, In a particular template, I had this code :
$object.data_map.flash.content.filepath|ezroot
This code put in the data attribute of an object tag and param tag work. eZ generated this source : /var/xxxx/storage/original/application/9101c9985b7a0ffd1944e1aa82f070bf.swf
And the browser served correctly the flash. But, with the cluster mode, the link to /var/xxxx/storage/original is not redirect to index_cluster.php (reserved for the content image). So I changed the code with : concat("content/download/",$object.data_map.flash.contentobject_id,"/",$object.data_map.flash.id,"/file/",$object.data_map.flash.content.original_filename)|ezurl}
The source generated by eZ is in this case : content/download/6450/156032/file/flashxxx.swf
In this case, the swf is correctly served by the index.php (as the clustering is configured) but the browser don't served the flash ( only IE works correctly) This code works only with Internet Explorer, not with Firefox
<object width="200" height="170" data="/content/download/6450/156032/file/flashxxx.swf" type="application/x-shockwave-flash">
<param value="/content/download/6450/156032/file/flashxxx.swf" name="movie"/>
<param name="quality" value="high"/>
<param name="scale" value="exactfit"/>
<param name="wmode" value="transparent"/>
<param name="salign" value="t"/>
</object>
Maybe because the content/download path give several download headers ?
How to do that correctly with the clustering mode ? Because I temporarily had a new RewriteRule : Rewriterule ^/var/([^/]+/)?storage/original/.* /index_cluster.php [L]
But I don't think is a very good solution Someone can help me ? Thanks
--
eZ c'est plus fort que toi !
http://www.ez-france.org
http://blog.plopix.net
@Novactive (http://www.novactive.com)
|