Forums / Setup & design / Multilevel forum

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