Download Image

Author Message

Daniele Cacace

Wednesday 25 May 2005 3:14:16 am

In Image template i want insert a link to download image in original size! Is It possible?
es:
TITLE
<-- GALLERY -->
|-------------|
|-------------|
|----IMAGE----|
|-------------|
|-------------|
LINK DOWNLOAD

Łukasz Serwatka

Wednesday 25 May 2005 3:24:46 am

Yes, only what you need is full image url.

<a href={$node.object.data_map.image.content['original'].url|ezroot} target="_blank">{$node.name}</a>

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Daniele Cacace

Wednesday 25 May 2005 3:30:44 am

it open about:blank

:|

Łukasz Serwatka

Wednesday 25 May 2005 3:36:10 am

Hmm, make sure that "image" is name of your attribute id (Image datatype) in your class.

What is the output?

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Daniele Cacace

Wednesday 25 May 2005 3:36:28 am

if I make to print {$node.object.data_map.image.content['original'].url|ezroot} to video I read:
""

:| :|

Łukasz Serwatka

Wednesday 25 May 2005 3:42:33 am

so, try with

{$node.data_map.YOUR_IMG_ATTRIBUTE.content[original].url|ezroot}

both works

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Daniele Cacace

Wednesday 25 May 2005 3:46:47 am

Sorry my error, i write {$node.object.data_map.content['original'].url|ezroot}
:(
I have modified the code ({$node.object.data_map.image.content['original'].url|ezroot}) but they give this error to me:

Fatal error: eZ publish did not finish its request

The execution of eZ publish was abruptly ended, the debug output is present below.

Daniele Cacace

Wednesday 25 May 2005 3:48:14 am

P.S. the class is "image" and template is standard template "image_full"

Łukasz Serwatka

Wednesday 25 May 2005 3:49:32 am

What happend when you use this code?

{$node.data_map.image.content[original].url|ezroot}

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Daniele Cacace

Wednesday 25 May 2005 3:51:44 am

"/var/intranet/storage/images/alexander/gallery/alexander02/500-1-ita-IT/alexander02.jpg" 

Łukasz Serwatka

Wednesday 25 May 2005 3:53:44 am

This must work ;)

<a href={$node.data_map.image.content[original].url|ezroot} target="_blank">{$node.name}</a>

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Daniele Cacace

Wednesday 25 May 2005 3:56:26 am

Now it works! :|:|:|

TNX ;)-

Łukasz Serwatka

Wednesday 25 May 2005 3:57:31 am

Great! ;)

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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