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.

eZ debug

Timing: Jan 18 2025 16:22:19
Script start
Timing: Jan 18 2025 16:22:19
Module start 'layout'
Timing: Jan 18 2025 16:22:19
Module start 'content'
Timing: Jan 18 2025 16:22:20
Module end 'content'
Timing: Jan 18 2025 16:22:20
Script end

Main resources:

Total runtime1.0933 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 587.7891152.6094
Module start 'layout' 0.00620.0032 740.398439.4297
Module start 'content' 0.00941.0820 779.8281536.5703
Module end 'content' 1.09150.0018 1,316.398412.1875
Script end 1.0933  1,328.5859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.3259160.0002
Check MTime0.00160.1452160.0001
Mysql Total
Database connection0.00080.069210.0008
Mysqli_queries1.035894.7441540.0192
Looping result0.00060.0541520.0000
Template Total1.058996.920.5295
Template load0.00220.205820.0011
Template processing1.056796.648120.5283
Template load and register function0.00020.018810.0002
states
state_id_array0.00110.104510.0011
state_identifier_array0.00190.175120.0010
Override
Cache load0.00190.1738540.0000
Sytem overhead
Fetch class attribute can translate value0.00100.093520.0005
Fetch class attribute name0.00130.115030.0004
XML
Image XML parsing0.00050.049520.0003
class_abstraction
Instantiating content class attribute0.00000.000730.0000
General
dbfile0.00090.0830160.0001
String conversion0.00000.000740.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/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: 21
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs