ObjectRelationsList and Image Preview

Author Message

Alejandro Dominguez

Wednesday 06 April 2011 3:25:42 am

Hello guys,

I have an ObjectRelationsList attribute with Image Classes. Is there any possibility to show a preview o the images?

I attach an screenshot of my ObjectRelationList view http://img863.imageshack.us/i/imagesst.jpg/

cheers

Alejandro Dominguez

Thursday 07 April 2011 2:28:39 am

I found a solution!

Note:I have the BackWardCompatibility enabled

You have to create an override of ezobjectrelationlist.tpl . Then you need to add a new cell header for the images "Preview" and then a new row with the following

<td>{attribute_view_gui attribute=$Relation:object.data_map.image  image_class=small}</td>

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

Main resources:

Total runtime0.0125 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.0053 588.2344151.2109
Module start 'layout' 0.00530.0019 739.445336.6563
Module start 'content' 0.00720.0042 776.101690.2031
Module end 'content' 0.01140.0010 866.304729.9766
Script end 0.0125  896.2813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002016.1181140.0001
Check MTime0.00097.3761140.0001
Mysql Total
Database connection0.00065.112210.0006
Mysqli_queries0.002217.380830.0007
Looping result0.00000.065010.0000
Template Total0.00086.610.0008
Template load0.00065.087410.0006
Template processing0.00021.442410.0002
Override
Cache load0.00043.404310.0004
General
dbfile0.00086.363580.0001
String conversion0.00000.040140.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