Image placement in Editor

Author Message

Pål Messenlien

Monday 05 September 2005 11:01:01 am

Im working on a new website in eZ publish and are having some strange problems with the eZ editor. When i add a image inside a article it wont get the image placement right. The image just shows up over the text instead of floating left/center/right of the text. Im using this code to show the output

	<h3>{$node.object.data_map.nyhet_oversk.content|wash}</h3>
        {attribute_view_gui attribute=$node.object.data_map.nyhet_ingress}

    {section show=$node.object.data_map.nyhet_artikkel.content.is_empty|not}
       {attribute_view_gui attribute=$node.object.data_map.nyhet_artikkel}
    {/section}

Any ideas??

--------------------------------------------
Høgskolen i Lillehammer
Lillehammer University College
http://www.hil.no
--------------------------------------------
Messenlien IT
http://messenlien.com
-------------------------------------------

K259

Monday 05 September 2005 11:13:56 am

Does this only happen in IE?

..you can add a table with border=0 and put image and text in separate cells.

We also have this problem on our site, but have "solved" it with tables. I think it's too much to pay 200-400 dollars for solving this bug(if it's a browser problem..), so we drop it.

Pål Messenlien

Monday 05 September 2005 11:28:00 am

It happends in both IE and Firefox browsers. Ive tried to edit the articles in both without any luck. This is the code the browser outputs on a image.

div class="attribute-image">
<p>    
<!-- START: including template: design/standard/templates/content/datatype/view/ezimage.tpl (design:content/datatype/view/ezimage.tpl) -->


    
        
    
    <img src="/var/plain/storage/images/media/images/thrane/714-1-nor-NO/thrane_medium.jpg" width="200" height="180"  style="border: 0px;" alt="" title="" />
    
    
    
<!-- STOP: including template: design/standard/templates/content/datatype/view/ezimage.tpl (design:content/datatype/view/ezimage.tpl) -->
</p>
</div>

There might be a css issue since we'r running a tab leless design. But turning off css tru Firefox dont help. Im goin to try to remove the css from the source instead and see if that helps.

--------------------------------------------
Høgskolen i Lillehammer
Lillehammer University College
http://www.hil.no
--------------------------------------------
Messenlien IT
http://messenlien.com
-------------------------------------------

Pål Messenlien

Tuesday 06 September 2005 3:34:30 am

I found the reason for this. The editor is using css as placement and other functions. This css code is in classes.css and this file where not loaded in my design. A better information on what css code we have to implement into our designs would be good. I see theres alot of other code in this file wich might have functions, but i dont want to load it before i realy need it. Im working on getting the css as small ass possible for faster loading of the pages.

--------------------------------------------
Høgskolen i Lillehammer
Lillehammer University College
http://www.hil.no
--------------------------------------------
Messenlien IT
http://messenlien.com
-------------------------------------------

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 19 2025 04:24:19
Script start
Timing: Jan 19 2025 04:24:19
Module start 'layout'
Timing: Jan 19 2025 04:24:19
Module start 'content'
Timing: Jan 19 2025 04:24:20
Module end 'content'
Timing: Jan 19 2025 04:24:20
Script end

Main resources:

Total runtime0.5638 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 590.5859152.6250
Module start 'layout' 0.00480.0024 743.210939.4453
Module start 'content' 0.00720.5552 782.6563512.0703
Module end 'content' 0.56240.0014 1,294.726612.1641
Script end 0.5638  1,306.8906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.5579160.0002
Check MTime0.00130.2385160.0001
Mysql Total
Database connection0.00090.157310.0009
Mysqli_queries0.522292.6176600.0087
Looping result0.00050.0813580.0000
Template Total0.536895.220.2684
Template load0.00190.331720.0009
Template processing0.534994.870720.2675
Template load and register function0.00020.028710.0002
states
state_id_array0.00130.224710.0013
state_identifier_array0.00090.154620.0004
Override
Cache load0.00150.2709160.0001
Sytem overhead
Fetch class attribute can translate value0.00050.086620.0002
Fetch class attribute name0.00170.294940.0004
XML
Image XML parsing0.00020.037320.0001
class_abstraction
Instantiating content class attribute0.00000.001640.0000
General
dbfile0.00060.1108100.0001
String conversion0.00000.001540.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/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: 14
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs