attribute_view_gui Image Size?

Author Message

Jan Bengia

Thursday 21 July 2005 12:42:51 pm

Hi,
in my template I have the following line:
{attribute_view_gui attribute=$node.object.data_map.image image_class=original}

The problem: Any parameters (image_class, href, etc.) are ignored. The image is shown - but not in the desired size.
For testing purposes I changed the default image_class in the ezimage.tpl: Still no change in displaying.

I have no overrides for the ezimage.tpl and not changed any image.ini.

thank!
orbi

Eivind Marienborg

Friday 22 July 2005 12:39:35 am

I assume you have tried clearing your cache?

Jan Bengia

Friday 22 July 2005 12:47:41 am

Hi,
yes, cleared complete cache ...

mg
orbi

Nuffstress Group

Tuesday 25 October 2005 2:03:53 pm

I finally figured it out. More has to be added to $node.object.data_map.image.

This is the line that should be used
$node.object.data_map.image.content.data_map.image

Therefore the attributes i.e image_class, alignment etc would not be ignored. Therefore the full line should be:

{attribute_view_gui alignment=right attribute=$node.object.data_map.image.content.data_map.image image_class=medium}

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 20:55:52
Script start
Timing: Jan 18 2025 20:55:52
Module start 'layout'
Timing: Jan 18 2025 20:55:52
Module start 'content'
Timing: Jan 18 2025 20:55:53
Module end 'content'
Timing: Jan 18 2025 20:55:53
Script end

Main resources:

Total runtime0.6368 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 587.9141152.6250
Module start 'layout' 0.00520.0035 740.539139.4453
Module start 'content' 0.00880.6266 779.9844547.9766
Module end 'content' 0.63540.0014 1,327.960912.1641
Script end 0.6367  1,340.1250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.5179160.0002
Check MTime0.00130.2093160.0001
Mysql Total
Database connection0.00040.062710.0004
Mysqli_queries0.586892.1516620.0095
Looping result0.00060.0990600.0000
Template Total0.605995.220.3030
Template load0.00200.316120.0010
Template processing0.603994.840020.3020
Template load and register function0.00020.026510.0002
states
state_id_array0.00130.200410.0013
state_identifier_array0.00080.129320.0004
Override
Cache load0.00170.2688250.0001
Sytem overhead
Fetch class attribute can translate value0.00070.117830.0002
Fetch class attribute name0.00080.130450.0002
XML
Image XML parsing0.00070.108630.0002
class_abstraction
Instantiating content class attribute0.00000.001750.0000
General
dbfile0.00170.2716160.0001
String conversion0.00000.001440.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs