Forums / Setup & design / Forums... so close...

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/

eZ debug

Timing: Jan 18 2025 11:03:50
Script start
Timing: Jan 18 2025 11:03:50
Module start 'content'
Timing: Jan 18 2025 11:03:51
Module end 'content'
Timing: Jan 18 2025 11:03:51
Script end

Main resources:

Total runtime0.8936 sec
Peak memory usage4,096.0000 KB
Database Queries191

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0085 588.7188180.8516
Module start 'content' 0.00850.7123 769.5703541.6328
Module end 'content' 0.72080.1728 1,311.2031332.7734
Script end 0.8936  1,643.9766 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00510.5679210.0002
Check MTime0.00250.2830210.0001
Mysql Total
Database connection0.00140.158010.0014
Mysqli_queries0.809390.56291910.0042
Looping result0.00210.23561890.0000
Template Total0.860296.320.4301
Template load0.00340.380620.0017
Template processing0.856895.874020.4284
Template load and register function0.00020.019210.0002
states
state_id_array0.00090.099310.0009
state_identifier_array0.00090.096720.0004
Override
Cache load0.00290.3224540.0001
Sytem overhead
Fetch class attribute can translate value0.00150.170930.0005
Fetch class attribute name0.00140.156930.0005
XML
Image XML parsing0.00110.121430.0004
class_abstraction
Instantiating content class attribute0.00000.000930.0000
General
dbfile0.00400.4455270.0001
String conversion0.00000.001030.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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