clickable thumbnail

Author Message

Michael Zielinski

Tuesday 05 July 2005 3:29:07 am

Hi,
On one of the sites I am working on I would like to have a thumbnail representation of the actual image included in the article. When clicking on that thumbnail the full sized image is opened in another window. I know that I can use href in the img tag but how do I find out what the actual path to the image (saved in Media library) is?

Thanks
Michael

Massimiliano Bariola

Tuesday 05 July 2005 3:49:18 am

Hi,

AFAIK you should not need the URL to do that. you simply call your
{attribute_view_gui attribute=$node.object.data_map.your_img_name image_class=your_image_size_class}

where your_img_name is the ezimage identifier of the image attribute of your node (provided that it's conglobated into another object; if not, just $node.name should do, i m not sure, try it)

and your_image_size_class is the class identifier you'll find in your settings/standard/image.ini file, or override thereof.

Bear in mind that as the image you are accessing is in the Media library, anonymous users will probably not be able to see it, as they don't usually have access rights to that folder. (at least, I had that problem and I have still not found a way around it except by via of saving the images in the standard section).

and now my question .... how do you do a good popup window without using the page_layout.tpl? have you found a way of doing it ?

bye

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 16:23:47
Script start
Timing: Jan 18 2025 16:23:47
Module start 'layout'
Timing: Jan 18 2025 16:23:47
Module start 'content'
Timing: Jan 18 2025 16:23:48
Module end 'content'
Timing: Jan 18 2025 16:23:48
Script end

Main resources:

Total runtime1.4927 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.0062 587.8125152.6094
Module start 'layout' 0.00620.0037 740.421939.4141
Module start 'content' 0.00991.4809 779.8359496.0313
Module end 'content' 1.49070.0017 1,275.86728.1875
Script end 1.4924  1,284.0547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.2327160.0002
Check MTime0.00140.0930160.0001
Mysql Total
Database connection0.00070.048010.0007
Mysqli_queries1.438396.3546540.0266
Looping result0.00060.0371520.0000
Template Total1.452497.320.7262
Template load0.00210.139620.0010
Template processing1.450397.160220.7251
Template load and register function0.00020.011210.0002
states
state_id_array0.00100.066810.0010
state_identifier_array0.00120.080420.0006
Override
Cache load0.00170.1133170.0001
Sytem overhead
Fetch class attribute can translate value0.00180.121420.0009
Fetch class attribute name0.00220.146030.0007
XML
Image XML parsing0.00080.050520.0004
class_abstraction
Instantiating content class attribute0.00000.000630.0000
General
dbfile0.00070.0486170.0000
String conversion0.00000.000640.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
3content/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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs