problem with "align" (in article view full)

Author Message

Marcin Drozd

Wednesday 05 July 2006 2:15:37 pm

Hi
I have (standard article_full template)

        {section show=$node.object.data_map.image.content}
            <div class="attribute-image">
                {attribute_view_gui attribute=$node.object.data_map.image align=right}
            </div>
        {/section}

and image is on the right
but with

{attribute_view_gui attribute=$node.object.data_map.image align=left}

, it doesnt work (image is on the right too)
what do U think?

http://ez-publish.pl

Łukasz Serwatka

Wednesday 05 July 2006 10:57:49 pm

What is the XHTML output from

{attribute_view_gui attribute=$node.object.data_map.image align=left}

You should use alignment=left|right|false()

{attribute_view_gui attribute=$node.object.data_map.image alignment=left}

Then make sure that CSS style for <div class="imageleft"> image here </div> is defined.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Marcin Drozd

Thursday 06 July 2006 12:49:48 am

Hi Lukasz

<i>You should use alignment=left|right|false()</i>
the same with "alignment"
I have original core.css and there are div.imageleft and div.imageright.
but I use alignment=left or alignment=right, and I always have: <div class="imageright">...</div>

http://ez-publish.pl

Łukasz Serwatka

Thursday 06 July 2006 1:16:14 am

Just for check, have you tried clear the cache?

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Marcin Drozd

Thursday 06 July 2006 1:33:42 am

Yes ;)
I install eZ and changed nothing, only override article full view (copy original tpl and changed alignment=left)
I have the same problem with eZp 3.6.x and 3.7.x
(line view tpl works correct)

http://ez-publish.pl

Marcin Drozd

Friday 14 July 2006 2:24:48 am

Hi
I always have to change css file from
div.imageright
{
float: left; //see -edit- below
} (core.css)
to
div.content-view-full div.class-article div.attribute-image div.imageright
{
float: left;
}
and image is on the left.
but I think it isn't normal

-edit-: I mislead (should be <b>right</b>, no <b>left</b> - my mistake

div.imageright
{
  float: right;
} (core.css)

http://ez-publish.pl

Łukasz Serwatka

Friday 14 July 2006 2:27:34 am

Hi Marcin,

If this does not work be default, can you please post a bug report about this?

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Marcin Drozd

Friday 14 July 2006 6:43:18 am

done
http://ez.no/bugs/view/8660

http://ez-publish.pl

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:26:30
Script start
Timing: Jan 31 2025 01:26:30
Module start 'layout'
Timing: Jan 31 2025 01:26:30
Module start 'content'
Timing: Jan 31 2025 01:26:31
Module end 'content'
Timing: Jan 31 2025 01:26:31
Script end

Main resources:

Total runtime0.9131 sec
Peak memory usage8,192.0000 KB
Database Queries72

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 588.2500151.2266
Module start 'layout' 0.00470.0032 739.4766220.7188
Module start 'content' 0.00780.9045 960.19534,508.2734
Module end 'content' 0.91230.0007 5,468.468815.8125
Script end 0.9131  5,484.2813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3610160.0002
Check MTime0.00110.1232160.0001
Mysql Total
Database connection0.00060.070110.0006
Mysqli_queries0.813089.0378720.0113
Looping result0.00070.0733700.0000
Template Total0.868095.120.4340
Template load0.00200.216620.0010
Template processing0.866094.844620.4330
Template load and register function0.00160.177210.0016
states
state_id_array0.00100.112410.0010
state_identifier_array0.00140.153020.0007
Override
Cache load0.00180.1957550.0000
Sytem overhead
Fetch class attribute can translate value0.00180.197620.0009
Fetch class attribute name0.00220.236390.0002
XML
Image XML parsing0.00070.080820.0004
class_abstraction
Instantiating content class attribute0.00000.0030110.0000
General
dbfile0.00080.0894180.0000
String conversion0.00000.000540.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
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
13content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 38
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs