Forums / Setup & design / problem with "align" (in article view full)

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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