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.

eZ debug

Timing: Jan 31 2025 01:34:38
Script start
Timing: Jan 31 2025 01:34:38
Module start 'layout'
Timing: Jan 31 2025 01:34:38
Module start 'content'
Timing: Jan 31 2025 01:34:38
Module end 'content'
Timing: Jan 31 2025 01:34:38
Script end

Main resources:

Total runtime0.0387 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 588.1250151.2109
Module start 'layout' 0.00680.0104 739.3359220.6875
Module start 'content' 0.01720.0198 960.0234997.6484
Module end 'content' 0.03690.0018 1,957.671933.9922
Script end 0.0387  1,991.6641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00318.1153140.0002
Check MTime0.00133.4104140.0001
Mysql Total
Database connection0.00092.398310.0009
Mysqli_queries0.008923.052030.0030
Looping result0.00000.064610.0000
Template Total0.00123.010.0012
Template load0.00092.442010.0009
Template processing0.00020.562610.0002
Override
Cache load0.00061.631910.0006
General
dbfile0.00020.635980.0000
String conversion0.00000.033240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs