How create a link to full size image in article?

Author Message

Adolfo Barragán

Thursday 21 August 2003 1:51:33 am

In article.tpl I need create a link on thumbnail to show the image in original or full size. How can I achieve this?

I look at {$content_version.data_map.thumbnail|attribute(show)} but I don't find the object_id or node_id for image.

Bjørn Kaarstein

Thursday 21 August 2003 4:44:56 am

<img src={$node.data_map.thumbnail.content[original].full_path|ezroot} />

will display your image with original size. Just put this within an ordinary href.

-Bjørn

Adolfo Barragán

Thursday 21 August 2003 5:11:08 am

> <img src={$node.data_map.thumbnail.content[original].full_path|ezroot} />

> will display your image with original size. Just put this within an ordinary href.

Thanks, but if I write:

<a href={$node.data_map.thumbnail.content[original].full_path|ezroot}>
{attribute_view_gui attribute=$node.data_map.thumbnail image_class=medium}
</a>

I get full path to Image, but the image is alone in browser, so I loose my pagelayout.

I need to know the node_id (if any) of image, so I can refer to 'content/view/full/xx'. Or I need variable $module_result.content point to <img src=... />

Bjørn Kaarstein

Monday 25 August 2003 2:31:31 am

If I get you right, you'll have to create a line view first, and then create a href to pint to the full view (read more...)

This: {node_view_gui view=element content_node=$:item}

Will set the view to element. Then you create an override for the element.tpl, viewing you image as thumbnail(and a headline or something) In your element override tou can link to <a href={$node.url_alias|ezurl}>Read more...</a>

Create an override for the full view, and everything should be okay.

Specify your overrides in the override.ini.append, and remember to clear the cache, in order to view the changes.

Hope this helps you further.

Regards Bjørn

cfa cfa

Thursday 11 September 2003 7:31:43 pm

is there a way to just click a link and use a pop-up window to display the original image?

Bjørn Kaarstein

Friday 12 September 2003 2:39:10 am

<a href={$node.data_map.thumbnail.content[original].full_path|ezroot} target="_blank" />View image</a>

wil open your image in a new window with it's original size.

Regards Bjørn

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 15:49:46
Script start
Timing: Jan 18 2025 15:49:46
Module start 'layout'
Timing: Jan 18 2025 15:49:46
Module start 'content'
Timing: Jan 18 2025 15:49:47
Module end 'content'
Timing: Jan 18 2025 15:49:47
Script end

Main resources:

Total runtime1.2266 sec
Peak memory usage4,096.0000 KB
Database Queries68

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 589.1797152.6406
Module start 'layout' 0.00480.0041 741.820339.4922
Module start 'content' 0.00891.2161 781.3125533.3906
Module end 'content' 1.22510.0015 1,314.703112.1250
Script end 1.2265  1,326.8281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2726160.0002
Check MTime0.00140.1132160.0001
Mysql Total
Database connection0.00080.066210.0008
Mysqli_queries1.169795.3604680.0172
Looping result0.00080.0629660.0000
Template Total1.186096.720.5930
Template load0.00220.180620.0011
Template processing1.183896.512920.5919
Template load and register function0.00020.018810.0002
states
state_id_array0.00120.095510.0012
state_identifier_array0.00190.157820.0010
Override
Cache load0.00190.1532320.0001
Sytem overhead
Fetch class attribute can translate value0.00050.044730.0002
Fetch class attribute name0.00230.188260.0004
XML
Image XML parsing0.00040.031230.0001
class_abstraction
Instantiating content class attribute0.00000.001460.0000
General
dbfile0.00170.1367100.0002
String conversion0.00000.000840.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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 16
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs