Basic question about handling images

Author Message

Pascal France

Sunday 30 December 2007 8:00:36 am

Hi,

I just would like to know how to create a link from a little image size to the full image size. Here is a real example of what I want to achieve:
http://ez.no/developer/contribs/datatypes/ez_user_create_limit
When we click the screenshot the full image size is displayed.

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

André R.

Sunday 30 December 2007 7:01:26 pm

use |attribute('show', 2) to find the path to the original image (or any of the alias version if you want).

Something like: {$image_attribute.content.original|attribute('show', 2)}

When you find the path you need to use the |ezroot() operator on it to get the correct direct web url.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Pascal France

Monday 31 December 2007 6:10:45 am

Hi André,

Do you mean that I can't do such a thing using the online editor ?

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Pascal France

Tuesday 01 January 2008 4:47:03 pm

Hi,

I've found how to creat such a link.

But I'm faced with a little trouble with the title of the link which is not written in the source code while it is present in the link interface of the Online Editor.

Here is my source code:

<a href="http://luxpopuli.fr/var/plain_site/storage/images/ez_publish__1/configuration__1/workflow_configurer_un_multiplexeur_pour_lancer_un_workflow_a_partir_d_un_workflow/evenementmultiplexer_2/11401-1-fre-FR/evenementmultiplexer_2.png" target="_blank">
<img src="/var/plain_site/storage/images/ez_publish__1/configuration__1/workflow_configurer_un_multiplexeur_pour_lancer_un_workflow_a_partir_d_un_workflow/evenementmultiplexer_2/11401-1-fre-FR/evenementmultiplexer_2_reference.png" width="530" height="600"  style="border: 0px;" alt="" title="" /></a> 

And the title of the link in OE is:

Cliquez sur l image pour l afficher dans sa taille réelle

I use ezp 3.9.4 and this trouble doesn't appear with normal text links which work fine.

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

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