Unable to align objects in 3.4

Author Message

Jack Rackham

Thursday 18 November 2004 5:58:58 am

When I try to align objects/images in an article it only works in the admin preview.

This is my article_full template:
-----------------------------------------
<div id="article">

<form method="post" action={"content/action"|ezurl}>

<input type="hidden" name="ContentNodeID" value="{$node.node_id}" />
<input type="hidden" name="ContentObjectID" value="{$node.object.id}" />
<input type="hidden" name="ViewMode" value="full" />

{default content_object=$node.object
content_version=$node.contentobject_version_object}

<h1>{$node.name|wash}</h1>

<div class="byline">
<p>
({$content_object.published|l10n( datetime )} by {attribute_view_gui attribute=$content_version.data_map.author})
</p>
</div>

{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}

{section show=$node.object.data_map.bilde_486.content}
<div class="attribute-image">
{attribute_view_gui alignment=center image_class=large attribute=$node.object.data_map.bilde_486}
</div>
{/section}

<div class="intro">
{attribute_view_gui attribute=$content_version.data_map.intro}
</div>

<div class="body">
{attribute_view_gui attribute=$content_version.data_map.body}
</div>

{section show=$node.object.data_map.enable_comments.data_int}
<div class="articlecomments">
{let message_list=fetch( content, list, hash(
parent_node_id, $node.object.main_node_id,
sort_by, array( published, false() ),
limit, $page_limit,
offset, 0,
class_filter_type, include,
class_filter_array,array( 'comment' ) ) )}

{section show=$message_list}
<h2>{"Kommentarer"|i18n("design/news/layout")}</h2>
{section name=Comment loop=$message_list}
{node_view_gui view=line content_node=$:item}
{/section}
{/section}

<h2>{"Skriv en kommentar"|i18n("design/news/layout")}</h2>

<div class="buttonblock">
<form method="post" action={"content/action"|ezurl}>
<input type="hidden" name="NodeID" value="{$node.main_node_id}" />
<input type="hidden" name="ClassID" value="13" />
<input class="button" type="submit" name="NewButton" value="Ny kommentar" />
</form>
</div>

{/let}
</div>
{/section}

{/default}

</form>
</div>

Alex Jones

Thursday 18 November 2004 6:29:10 am

This would appear to be a CSS issue. I would recommend that you look at the style sheet and template output used for the admin area and compare it with the style sheet and output of your site. If you cannot find an obvious difference, feel free to post the style sheets and output of both here, so that we can compare them and make a recommendation. :)

FYI, when possible, please wrap code in code tags as that will preserve formatting, making it easier for others to read your code. The tags you can use within a forum message are displayed on the comment input page, right below the <i>Message</i> box. :)

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.