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