Custom Class with 10 images attributes

Author Message

Nikunj Jariwala

Friday 22 May 2009 1:08:17 pm

Hi,
I have created a custom class using 10 images attributes. I am able to display those images on a page but i was wondering how to get the thumbnail of the images to display on the page with each image as a link to the larger view of the image.
Thanks.

Luis Micunco

Wednesday 05 August 2009 3:59:42 am

Try this:

<a href="{$node.data_map.image.content[original].url|ezroot('no')}"><img src={$node.data_map.image.content[medium].url|ezroot} /></a>

You can replace "medium" by any other default sizes:

AliasList[]
AliasList[]=reference
AliasList[]=small
AliasList[]=tiny
AliasList[]=medium
AliasList[]=large
AliasList[]=rss

Optionally you can create your own in "image.ini"

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 18:24:01
Script start
Timing: Jan 18 2025 18:24:01
Module start 'layout'
Timing: Jan 18 2025 18:24:01
Module start 'content'
Timing: Jan 18 2025 18:24:02
Module end 'content'
Timing: Jan 18 2025 18:24:02
Script end

Main resources:

Total runtime1.1087 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 588.0313152.6406
Module start 'layout' 0.00660.0032 740.671939.4609
Module start 'content' 0.00981.0973 780.1328459.1563
Module end 'content' 1.10720.0015 1,239.28918.1563
Script end 1.1087  1,247.4453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2968160.0002
Check MTime0.00140.1236160.0001
Mysql Total
Database connection0.00080.067810.0008
Mysqli_queries1.069796.4812540.0198
Looping result0.00060.0565520.0000
Template Total1.071996.720.5359
Template load0.00210.185420.0010
Template processing1.069896.486820.5349
Template load and register function0.00020.021710.0002
states
state_id_array0.00130.120310.0013
state_identifier_array0.00360.325420.0018
Override
Cache load0.00170.1493120.0001
Sytem overhead
Fetch class attribute can translate value0.00080.068420.0004
Fetch class attribute name0.00150.134420.0007
XML
Image XML parsing0.00020.020820.0001
class_abstraction
Instantiating content class attribute0.00000.000620.0000
General
dbfile0.00060.0508100.0001
String conversion0.00000.000740.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/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: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs