Forums / Setup & design / Images

Images

Author Message

Michael Zielinski

Monday 23 May 2005 12:36:36 am

Hi,
I am trying to show an image using the following code

<img class="left" src={$node.object.data_map.pasfoto.content.full_path} width="120" height="157" border="0" alt="" title="" />

but it does not work. No path is returned. What am I doing wrong?

thanks
Michael

Michael Zielinski

Monday 23 May 2005 1:02:33 am

NM

using

<img class="left" src="/{$node.data_map.pasfoto.content[original].full_path}" width="120" height="157" border="0" alt="" title="" />

solved the problem but I had to add the '/' befoer the path to make it absolute.

Michael

Marko Žmak

Monday 23 May 2005 3:02:14 am

Try using something like:

src={$node.data_map.pasfoto.content[original].full_path|ezurl}

With this you don't have to put '/' in front and it will work for any siteacces you want. Note that you can also use:

{attribute_view_gui attribute=$node.data_map.pasfoto}

And override the template for ezimage.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth