Forums... so close...

Author Message

Hugo Gallo

Tuesday 17 June 2003 2:11:11 pm

I've been going through the demo's forum example, and I pretty much have it down until I start messing with the "New topic" button (demo/content/view/full/117/)

Here is the code for the override forum class (full_class_6.tpl):

{default with_children=true()
is_editable=true()
is_standalone=true()
content_object=$node.object}

{section show=$is_standalone}
<form method="post" action={"/content/action/"|ezurl}>
{/section}

{section show=$with_children}
<table class="forumlist" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<th class="forumheader">
Topic (I'm good!!)
</th>
<th class="postedheader">
Posted
</th>
</tr>
{section name=Message loop=fetch('content','list',hash(parent_node_id,$node.node_id,limit,$page_limit,offset,$view_parameters.offset)) sequence=array(FDF4D9,FDF1CE)}
<tr>
<td class="messagetopic" style="background-color: #{$Message:sequence};" width="75%">
<a href={concat('content/view/full/',$Message:item.node_id,'/')|ezurl}>{$Message:item.name|wash}</a>
{let list_count=fetch('content','tree_count',hash(parent_node_id,$Message:item.node_id))}
( {$Message:list_count} )
{/let}
</td>
<td class="messageauthor" style="background-color: #{$Message:sequence};" width="25%">
{$Message:item.object.published|l10n(shortdatetime)}<br />
by {$Message:item.object.owner.name|wash}
</td>
</tr>
{/section}

</table>
{/section}

{section show=$is_editable}
<div class="buttonblock">
<input type="hidden" name="NodeID" value="{$node.node_id}" />
<input class="button" type="submit" name="NewButton" value="New topic" />
<input type="hidden" name="ClassID" value="8" />

<input type="hidden" name="ContentObjectID" value="{$content_object.id}" />
</div>
{/section}

{section show=$is_standalone}
</form>
{/section}

{/default}

My question is, on the submit of this form, what is the action doing? Specifically, action={"/content/action/"|ezurl}> ? I can't find any documents on this. Any help or a point to a document would be much appreciated. Thanks.

Björn Dieding@xrow.de

Friday 20 June 2003 6:20:36 am

If you want to know that exactly oyu have to look thourgh the api and the code :-) have phun

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

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