Forums / Setup & design / How create a link to full size image in article?

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