Problem to insert a flash file on the public side

Author Message

laurent le cadet

Wednesday 04 June 2003 7:15:11 am

Hi,

I manage to insert a flash file on the admin side but not on the public side.
The template to show the flash in admin is :

design/standard/templates/content/datatype/view/ezmedia.tpl

but on the public side, the url...content/view/full/"my flash file object ID" just show me the name of the file (like that "phpPjpOjT.swf") with this template : design/demo/override/templates/file.tpl

I tried to override this template adding the content of the ezmedia.tpl but it's still the same.

Many thanks for help.

Ps : the re-writing rules seems to be correct on the both sides.

Paul Borgermans

Saturday 07 June 2003 5:36:05 am

What datatype are you using for your flash file? You should use the media datatype and make sure you have the correct url operators in your templates.

Paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Jerry Jalava

Wednesday 18 June 2003 3:21:47 am

I used the media type and it works nicely...
This is what my test template looked:
{default content_object=$node.object
content_version=$node.contentobject_version_object
node_name=$node.name}
<div align="center">
<table width="80%" border="0">
{section name=ContentObjectAttribute loop=$content_version.contentobject_attributes}
<tr>
{switch match=$ContentObjectAttribute:item.is_a}
{case match=ezstring}
<td class="NewsTitle"><br><br>{attribute_view_gui attribute=$ContentObjectAttribute:item}<br></td>
{/case}
</tr>
<tr>
{case}
<td><br>{attribute_view_gui attribute=$ContentObjectAttribute:item}</object><br></td>
{/case}
{/switch}
</tr>
{/section}
</table><br><br>
</div>
{/default}

The switch is there because in my FlashTest Class I have to attributes: Text Line(Title) and Flash Mediatype...

Regards,
Jerry

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 10:53:56
Script start
Timing: Jan 18 2025 10:53:56
Module start 'layout'
Timing: Jan 18 2025 10:53:56
Module start 'content'
Timing: Jan 18 2025 10:53:57
Module end 'content'
Timing: Jan 18 2025 10:53:57
Script end

Main resources:

Total runtime0.7678 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0088 588.0625152.6406
Module start 'layout' 0.00880.0036 740.703139.4766
Module start 'content' 0.01240.7542 780.1797579.1406
Module end 'content' 0.76660.0012 1,359.320312.1250
Script end 0.7678  1,371.4453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4277160.0002
Check MTime0.00130.1745160.0001
Mysql Total
Database connection0.00090.112910.0009
Mysqli_queries0.708992.3265590.0120
Looping result0.00060.0832570.0000
Template Total0.729395.020.3647
Template load0.00210.276220.0011
Template processing0.727294.715620.3636
Template load and register function0.00010.013610.0001
states
state_id_array0.00130.164910.0013
state_identifier_array0.00110.143220.0005
Override
Cache load0.00190.2420440.0000
Sytem overhead
Fetch class attribute can translate value0.00050.071530.0002
Fetch class attribute name0.00150.197250.0003
XML
Image XML parsing0.00260.342530.0009
class_abstraction
Instantiating content class attribute0.00000.001250.0000
General
dbfile0.00310.3994230.0001
String conversion0.00000.001540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs