Image placement to the left next to heading is not working..

Author Message

K259

Tuesday 06 September 2005 4:32:02 am

Does anyone know why? Placement to the right is working when heading is set to the left.

This is the default ez code with some modifications in file /override/templates/content/view/embed_class_5.tpl:

{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[ezini( 'ImageSettings', 'DefaultEmbedAlias', 'content.ini' )]}
{/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="right"}
<div class="imageright">
{section show=$href}<a href={$href|ezurl} target="{$attribute_parameters.target}">{/section}
<img src={$image_variation.full_path|ezroot} alt="{$object.data_map.image.content.alternative_text|wash(xhtml)}" />
{section show=$href}</a>{/section}
{*sjekk for tom caption paa rightbilde*}
{section show=ne($object.data_map.caption.content.output.output_text,"")}
<div style="width: {$image_variation.width}px;">
{$object.data_map.caption.content.output.output_text}
</div>{/section}
</div>
{/case}

{case match="left"}
<div class="imageleft">
{section show=$href}<a href={$href|ezurl} target="{$attribute_parameters.target}">{/section}
<img src={$image_variation.full_path|ezroot} alt="{$object.data_map.image.content.alternative_text|wash(xhtml)}" />
{section show=$href}</a>{/section}
{*sjekk for tom caption paa leftbilde*}
{section show=ne($object.data_map.caption.content.output.output_text,"")}
<div style="width: {$image_variation.width}px;">
{$object.data_map.caption.content.output.output_text}
</div>{/section}
</div>
{/case}

{case}

<div class="imagecenter">
{section show=$href}<a href={$href|ezurl} target="{$attribute_parameters.target}">{/section}
<img src={$image_variation.full_path|ezroot} alt="{$object.data_map.image.content.alternative_text|wash(xhtml)}"  />
{section show=$href}</a>{/section}
{*sjekk for tom caption paa centerbilde*}
{section show=ne($object.data_map.caption.content.output.output_text,"")}
<div style="width: {$image_variation.width}px;">
{$object.data_map.caption.content.output.output_text}
</div>{/section}
</div>
{/case}
{/switch}

{/let}

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 20 2025 14:27:56
Script start
Timing: Jan 20 2025 14:27:56
Module start 'layout'
Timing: Jan 20 2025 14:27:56
Module start 'content'
Timing: Jan 20 2025 14:27:57
Module end 'content'
Timing: Jan 20 2025 14:27:57
Script end

Main resources:

Total runtime0.9624 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 589.4141152.6563
Module start 'layout' 0.00480.0025 742.070339.5078
Module start 'content' 0.00720.9535 781.5781411.3125
Module end 'content' 0.96070.0016 1,192.89068.0938
Script end 0.9624  1,200.9844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3455160.0002
Check MTime0.00130.1368160.0001
Mysql Total
Database connection0.00070.077010.0007
Mysqli_queries0.929296.5496460.0202
Looping result0.00050.0504440.0000
Template Total0.930796.720.4654
Template load0.00200.212820.0010
Template processing0.928796.493520.4643
Template load and register function0.00020.021610.0002
states
state_id_array0.00090.096610.0009
state_identifier_array0.00240.248220.0012
Override
Cache load0.00160.162860.0003
Sytem overhead
Fetch class attribute can translate value0.00090.095410.0009
Fetch class attribute name0.00060.064610.0006
XML
Image XML parsing0.00010.013910.0001
class_abstraction
Instantiating content class attribute0.00000.000410.0000
General
dbfile0.00100.0993100.0001
String conversion0.00000.000640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 5
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs