Multilevel forum

Author Message

Trond Hjelmaas

Wednesday 01 June 2005 12:51:05 pm

Hi,

I installed the default eZ website including the forum.

I would like a forum that has multiple levels, for example:
Level 1: "Buy and sell"
Level 2: "Australia"

I simply added the (sub)node of type "Forum" to the root "Forum" node. But it doesn't show up. However, if I add a "Forum topic" at the same location (as the Australia node) this "Forum topic" node shows up.

Can anyone help me what to do?

Thanks!

Ɓukasz Serwatka

Wednesday 08 June 2005 1:34:43 am

Hi Trond,

In file design/base/override/templates/full/forum.tpl
you can add simple fetch at the top of page and list sub-forums as well.

{def $sub_forums=fetch( content, list, hash( parent_node_id, $node.node_id,
class_filter_type, include,
class_filter_array, array( 'forum' ) ) )}

{foreach $sub_forums as $forum}
    {$forum.name|wash} <br />
{/foreach}

For < 3.6 use let and section to loop the results

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 22:31:47
Script start
Timing: Jan 18 2025 22:31:47
Module start 'layout'
Timing: Jan 18 2025 22:31:47
Module start 'content'
Timing: Jan 18 2025 22:31:48
Module end 'content'
Timing: Jan 18 2025 22:31:48
Script end

Main resources:

Total runtime0.8898 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.0068 588.9297152.6094
Module start 'layout' 0.00680.0031 741.539139.4141
Module start 'content' 0.00990.8785 780.9531527.7188
Module end 'content' 0.88840.0014 1,308.67198.1875
Script end 0.8898  1,316.8594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.4490160.0002
Check MTime0.00140.1544160.0001
Mysql Total
Database connection0.00080.089010.0008
Mysqli_queries0.841094.5205540.0156
Looping result0.00060.0634520.0000
Template Total0.854996.120.4274
Template load0.00260.289320.0013
Template processing0.852395.786020.4262
Template load and register function0.00030.033110.0003
states
state_id_array0.00160.175910.0016
state_identifier_array0.00150.168120.0007
Override
Cache load0.00220.2500180.0001
Sytem overhead
Fetch class attribute can translate value0.00080.092620.0004
Fetch class attribute name0.00110.122030.0004
XML
Image XML parsing0.00160.180320.0008
class_abstraction
Instantiating content class attribute0.00000.000830.0000
General
dbfile0.00080.0870180.0000
String conversion0.00000.001040.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
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/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
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs