[SOLVED] Can't find the right Image tag template?

Author Message

Nathan Kelly

Thursday 08 September 2005 11:23:39 pm

Hi.

I'm using the attribute_view_gui comand to output an image as follows:-

{attribute_view_gui attribute=$node.object.data_map.image.content.data_map.image}

Which outputs this:-

<img src="path to image/image name" width="120" height="90"  style="border: 0px;" alt="" title="" />

But I don't want the width and height attributes specified as I'm using XHTML strict per client request (and they insist on validation).

Can anyone tell me where to find the template that outputs this image tag, I've looked everywhere but I can't find it.

Any help appreciated...

Cheers!

Pardon me while I burst into flames...

Kristof Coomans

Thursday 08 September 2005 11:43:01 pm

The view template for the datatype ezimage is located at design/standard/templates/content/datatype/view/ezimage.tpl

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Nathan Kelly

Friday 09 September 2005 4:54:52 pm

Doh... Of course it is! Thanks Kristof I did'nt think to look in datatypes.

Cheers!

Pardon me while I burst into flames...

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 19 2025 09:09:31
Script start
Timing: Jan 19 2025 09:09:31
Module start 'layout'
Timing: Jan 19 2025 09:09:31
Module start 'content'
Timing: Jan 19 2025 09:09:33
Module end 'content'
Timing: Jan 19 2025 09:09:33
Script end

Main resources:

Total runtime1.2747 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0082 589.2891152.6406
Module start 'layout' 0.00820.0040 741.929739.4922
Module start 'content' 0.01231.2609 781.4219541.5469
Module end 'content' 1.27310.0015 1,322.968812.1250
Script end 1.2747  1,335.0938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2689160.0002
Check MTime0.00130.1022160.0001
Mysql Total
Database connection0.00080.062810.0008
Mysqli_queries1.220795.7682570.0214
Looping result0.00070.0544550.0000
Template Total1.230996.620.6154
Template load0.00270.208520.0013
Template processing1.228296.352520.6141
Template load and register function0.00010.006710.0001
states
state_id_array0.00120.091510.0012
state_identifier_array0.00170.135720.0009
Override
Cache load0.00200.1553200.0001
Sytem overhead
Fetch class attribute can translate value0.00060.046120.0003
Fetch class attribute name0.00090.074150.0002
XML
Image XML parsing0.00100.076320.0005
class_abstraction
Instantiating content class attribute0.00000.000760.0000
General
dbfile0.00110.0837220.0000
String conversion0.00000.000940.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
3content/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
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.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