use image_class to downsize an object-related image

Author Message

Softriva .com

Friday 09 February 2007 12:21:55 am

How can I downsize an object-related images. I used the following with no help

{$node.name}
{attribute_view_gui image_class=small attribute=$node.data_map.news_image}

I also tried this with no help

{$node.name}
{attribute_view_gui attribute=$node.data_map.news_image image_class=small}

By the way news_image is an object-relation datatype

Bruce Morrison

Friday 09 February 2007 1:02:06 am

Hi OOzy

Try

{$node.name}
{attribute_view_gui image_class=small attribute=$node.data_map.news_image.content.data_map.image}

Because news_image is an object relation datatype you need to passwd the image attribute of the related object to attribute_view_gui

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Softriva .com

Friday 09 February 2007 2:29:21 am

Worked perfect.

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 20 2025 12:50:40
Script start
Timing: Jan 20 2025 12:50:40
Module start 'layout'
Timing: Jan 20 2025 12:50:40
Module start 'content'
Timing: Jan 20 2025 12:50:40
Module end 'content'
Timing: Jan 20 2025 12:50:40
Script end

Main resources:

Total runtime0.0145 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.0052 589.3984152.6563
Module start 'layout' 0.00520.0027 742.054739.4922
Module start 'content' 0.00790.0044 781.546989.4766
Module end 'content' 0.01230.0022 871.023430.3047
Script end 0.0144  901.3281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002517.2562140.0002
Check MTime0.00117.3858140.0001
Mysql Total
Database connection0.00075.038310.0007
Mysqli_queries0.002618.186630.0009
Looping result0.00000.082510.0000
Template Total0.001711.610.0017
Template load0.00096.019910.0009
Template processing0.00085.562910.0008
Override
Cache load0.00063.929710.0006
General
dbfile0.00031.989680.0000
String conversion0.00000.047840.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