How to determine image_class in PHP?

Author Message

Alex Jones

Monday 18 August 2003 9:08:43 am

How can I capture the contents of the image_class from a template and use it on the back-end? Specifically I have the following line in a template:

{attribute_view_gui attribute=$content_version.data_map.image_1 image_class=medium}

I want to get the value of image_class and use it in ezimagegd.php but am not sure how to determine whether it is a medium, large etc.

Help is greatly appreciated!

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

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 31 2025 04:24:58
Script start
Timing: Jan 31 2025 04:24:58
Module start 'layout'
Timing: Jan 31 2025 04:24:58
Module start 'content'
Timing: Jan 31 2025 04:24:58
Module end 'content'
Timing: Jan 31 2025 04:24:58
Script end

Main resources:

Total runtime0.0121 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 588.1563151.2109
Module start 'layout' 0.00480.0021 739.367236.6484
Module start 'content' 0.00690.0039 776.015686.0625
Module end 'content' 0.01080.0012 862.078129.9922
Script end 0.0120  892.0703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002117.3907140.0001
Check MTime0.00108.5601140.0001
Mysql Total
Database connection0.00097.628110.0009
Mysqli_queries0.002016.865430.0007
Looping result0.00000.148110.0000
Template Total0.00097.910.0009
Template load0.00075.896310.0007
Template processing0.00021.945010.0002
Override
Cache load0.00054.239610.0005
General
dbfile0.00021.662780.0000
String conversion0.00000.033640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs