Image preview problem

Author Message

Nebojsa Eric

Wednesday 23 August 2006 5:10:23 am

Hi.

I have a class containing different attributes. One of them is an image attribute. I need to fetch all class instances and make some sort of a gallery. This is not a problem. When I click on the image thumbnail I want that image to open in a new window in full size avoiding pagelayout.tpl. I want a page that will just show a full size image on it.

Any help?
Thanks.

Kristof Coomans

Wednesday 23 August 2006 5:53:56 am

Hello Eric

If you're using the attribute_view_gui template function to display the image, then just add link_to_image=true() to it.

If you're directly using the image attribute, then use:
{$attribute.content.original.url|ezroot} for the href attribute of the HTML anchor.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Nebojsa Eric

Wednesday 23 August 2006 5:59:30 am

Thanks Kristof.

It`s working.

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 19 2025 04:29:21
Script start
Timing: Jan 19 2025 04:29:21
Module start 'layout'
Timing: Jan 19 2025 04:29:21
Module start 'content'
Timing: Jan 19 2025 04:29:21
Module end 'content'
Timing: Jan 19 2025 04:29:21
Script end

Main resources:

Total runtime0.5238 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0081 590.1797152.6094
Module start 'layout' 0.00810.0035 742.789139.4141
Module start 'content' 0.01170.5107 782.2031538.5078
Module end 'content' 0.52240.0014 1,320.710912.1875
Script end 0.5238  1,332.8984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.5826160.0002
Check MTime0.00130.2396160.0001
Mysql Total
Database connection0.00160.303510.0016
Mysqli_queries0.471189.9343570.0083
Looping result0.00050.0943550.0000
Template Total0.490093.520.2450
Template load0.00170.322620.0008
Template processing0.488393.213320.2441
Template load and register function0.00010.021310.0001
states
state_id_array0.00120.233110.0012
state_identifier_array0.00100.183420.0005
Override
Cache load0.00140.2623180.0001
Sytem overhead
Fetch class attribute can translate value0.00050.086520.0002
Fetch class attribute name0.00100.183850.0002
XML
Image XML parsing0.00100.199520.0005
class_abstraction
Instantiating content class attribute0.00000.002160.0000
General
dbfile0.00210.3942220.0001
String conversion0.00000.001640.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs