path to the original image

Author Message

justin kazadi

Tuesday 04 November 2008 8:04:47 am

hello all,
i want to display the original image from an node ($node) not the alias image.
i want to have same things like this in my templates:

<img src="{path_to_the_original_image_from_$node}" alt="img1" width="425" height="245" style="border:0px;" />

i have put this code in the full template of article content class so i can use

$node

variable.
thanks in advance.

The theory is when we know everything and nothing works.
The practice is when everything works and nobody knows why.
If the practice and theory are met, nothing works and we do not know why.

Albert Einstein

Ivo Lukac

Tuesday 04 November 2008 9:58:44 am

Hello justin,

If yout image attribute is called 'image' try this:

{$node.data_map.image.content.original.url}

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

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

Main resources:

Total runtime0.0227 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 588.1328151.2109
Module start 'layout' 0.00470.0043 739.3438220.6875
Module start 'content' 0.00900.0122 960.0313997.9141
Module end 'content' 0.02120.0015 1,957.945329.9922
Script end 0.0226  1,987.9375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002812.3561140.0002
Check MTime0.00114.6373140.0001
Mysql Total
Database connection0.00073.024610.0007
Mysqli_queries0.002410.420630.0008
Looping result0.00000.074610.0000
Template Total0.00104.510.0010
Template load0.00083.452510.0008
Template processing0.00020.988210.0002
Override
Cache load0.00052.403310.0005
General
dbfile0.00041.568680.0000
String conversion0.00000.044240.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