JBoss.orgCommunity Documentation

Forum array

Category may contain one or more Forums. The value of the Forum is defined in the forums field. It returns a forum array. The value of forum array is defined by the org.exoplatform.forum.service.conf.ForumData object as below:



<field name="forums">
  <collection type="java.util.ArrayList">
    <value>
      <object type="org.exoplatform.forum.service.conf.ForumData">
        <field name="owner"><string>root</string></field>
        <field name="name"><string>Live demo</string></field>
        <field name="description"><string>Questions about this demo</string></field>
        ...
      </object>
    </value>
  </collection>
</field>

Forum includes some basic data which are defined in the field tag with the specific name as above.

In which:

Field Possible value Default value Description
owner user id root The creator of default Forum.
name string Live demo The name or title of default Forum.
description string Questions about this demo The brief description of default Forum.

The default Forum values can be changed by editing text values in the string tag of each field by the other one.

In the sample code above, the org.exoplatform.forum.service.conf.ForumData object is called only one time. It means that only one default Forum is defined inside the default Category named Knowledge Suite. If you want to define more default Forums, repeat calling the org.exoplatform.forum.service.conf.ForumData object and define values for the new Forum with the sample code as below:



<value>
  <object type="org.exoplatform.forum.service.conf.ForumData">
    <field name=" ">
      ...
    </field>
  </object>
</value>