Forums / Developer / path to the original image

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