image alignment without effect

Author Message

Thomas Brandl

Wednesday 17 September 2003 3:18:04 am

Hi,

I have inserted an image object inside an info page:
--- snip ---
<object id="54" size="small" align="left" /> This is supposed to be right next to my image
--- snip ---

However, the size and align attribute are ignored!

Any ideas? My Version is 3.2 rev 3500

Thanks!
t

Bjørn Kaarstein

Thursday 18 September 2003 5:18:25 am

Have you checked your embed template? It might have something to do with that.

Regards Bjørn

Thomas Brandl

Friday 19 September 2003 6:34:28 am

Hi Bjørn,

/design/standard/templates/content/datatype/view/ezimage.tpl
is being used:

{section show=and(first_set($attribute.content,true()),first_set($attribute.content.contentobject_attribute_id,false()))}
{default image_class=large
alignment=false()
hspace=false()
border_size=0}
{let image_content=$attribute.content
image=$image_content[$image_class]}
<img src={$image.full_path|ezroot} width="{$image.width}" height="{$image.height}" {section show=$hspace}hspace="{$hspace}"{/section} {section show=$alignment}align="{$alignment}"{/section} border="{$border_size}" alt="{$image_content.alternative_text|wash(xhtml)}" />
{/let}
{/default}
{/section}

I have no idea how to submit values for 'image_class' and 'alignment'.

Do I need to override it?

Thanks!

Thomas Brandl

Monday 22 September 2003 8:28:57 am

sorry to bother again, but I need that piec of info:

is this the correct way of aligning a picture?
<object id="54" size="small" alignment="left" />

If no, what are the correct attributes to use?

thanks!

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