eZ 3.1.0.2 : embed.tpl -> differents images cases

Author Message

laurent le cadet

Thursday 19 June 2003 12:54:08 am

This is the "original" template wich show images in the demo version :

{let image_variation="false"
align="center"
href=''}

{section show=is_set($attribute_parameters.size)}
{set image_variation=$object.data_map.image.content[$attribute_parameters.size]}
{section-else}
{set image_variation=$object.data_map.image.content["medium"]}
{/section}

{section show=is_set($attribute_parameters.align)}
{set align=$attribute_parameters.align}
{section-else}
{set align="center"}
{/section}

{section show=is_set($attribute_parameters.href)}
{set href=$attribute_parameters.href}
{section-else}
{set href=""}
{/section}

{switch match=$align}
{case match="left"}
<div class="imageleft">
{section show=$href}<a href={$href|ezurl}>{/section}
<img src={$image_variation.full_path|ezroot} />
{section show=$href}</a>{/section}

<div style="width: {$image_variation.width}px;">
{$object.data_map.caption.content.output.output_text}
</div>
</div>
{/case}
{case match="right"}
<div class="imageright">
{section show=$href}<a href={$href|ezurl}>{/section}
<img src={$image_variation.full_path|ezroot} />
{section show=$href}</a>{/section}

<div style="width: {$image_variation.width}px;">
{$object.data_map.caption.content.output.output_text}
</div>
</div>
{/case}
{case}
<div class="imagecenter">
{section show=$href}<a href={$href|ezurl}>{/section}
<img src={$image_variation.full_path|ezroot} />
{section show=$href}</a>{/section}

<div style="width: {$image_variation.width}px;">
{$object.data_map.caption.content.output.output_text}
</div>
</div>
{/case}
{/switch}

{/let}

I would like to show images in original size without the line for the caption.
I think it's this one :

<div style="width: {$image_variation.width}px;">
{$object.data_map.caption.content.output.output_text}
</div>

So I tryied this way (this few lines just before the last {/let} of the previous code):

{switch match=$image_variation}
{case match="original"}
<img src={$image_variation.full_path|ezroot} />
{/case}
{/switch}

But it don't work. Someone can help me ?

Tor Olav Steinsvoll

Thursday 24 July 2003 3:42:42 am

Log in to admin and check the full.tpl and what template-override the images got.

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