Image preview problem

Author Message

Nebojsa Eric

Wednesday 23 August 2006 5:10:23 am

Hi.

I have a class containing different attributes. One of them is an image attribute. I need to fetch all class instances and make some sort of a gallery. This is not a problem. When I click on the image thumbnail I want that image to open in a new window in full size avoiding pagelayout.tpl. I want a page that will just show a full size image on it.

Any help?
Thanks.

Kristof Coomans

Wednesday 23 August 2006 5:53:56 am

Hello Eric

If you're using the attribute_view_gui template function to display the image, then just add link_to_image=true() to it.

If you're directly using the image attribute, then use:
{$attribute.content.original.url|ezroot} for the href attribute of the HTML anchor.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Nebojsa Eric

Wednesday 23 August 2006 5:59:30 am

Thanks Kristof.

It`s working.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.