JBoss.orgCommunity Documentation
Forum may contain one or more topics. The value of topic is defined in the topics field. It returns a topic array. The value of topic array is defined by the org.exoplatform.forum.service.conf.TopicData object as below:
<field name="topics">
<collection type="java.util.ArrayList">
<value>
<object type="org.exoplatform.forum.service.conf.TopicData">
<field name="name"><string>Demo data policy</string></field>
<field name="icon"><string>Tux</string></field>
<field name="owner"><string>root</string></field>
<field name="content"><string>Welcome to eXo Forum live demo. ... at anytime.</string></field>
...
</object>
</value>
</collection>
</field>
A topic includes some basic data which are defined in the field tag with a specific name as above.
In which:
Field | Possible value | Default value | Description |
---|---|---|---|
name | string | Demo data policy | The name or title of default topic. |
icon | string
| Tux | The default icon of default topic. |
owner | user id | root | The creator of default topic. |
content | string | Welcome to eXo Forum live demo...at anytime. | The main content of default topic. |
The values of default topic can be changed by editing text values in the string tag of each field.
With the sample code above, the org.exoplatform.forum.service.conf.TopicData object is called only one time. It means that only one default topic is defined inside the default Forum named Live demo. If you want to define more default topics, repeat calling the org.exoplatform.forum.service.conf.TopicData object and define values for the new topic with the sample code as below:
<value>
<object type="org.exoplatform.forum.service.conf.TopicData">
<field name=" ">
...
</field>
</object>
</value>
Topic may contain one or more posts. The value of the post is defined in the posts field. It returns a post array. The value of the post array is defined by the org.exoplatform.forum.service.conf.PostData object as below:
<field name="posts">
<collection type="java.util.ArrayList">
<value>
<object type="org.exoplatform.forum.service.conf.PostData">
<field name="name"><string>Reply: Demo data policy</string></field>
<field name="icon"><string>IconsView</string></field>
<field name="owner"><string>root</string></field>
<field name="content"><string>Enjoy and don't forget to send feedback at ks@exoplatform.com</string></field>
...
</object>
</value>
</collection>
</field>
A post includes some basic data which are defined in the field tag with a specific name as above.
In which:
Field | Possible value | Default value | Description |
---|---|---|---|
name | string | Reply: Demo data policy | The name or title of default post. |
icon | string | IconsView | The default icon of default post. |
ownwer | user id | root | The creator of default post. |
content | string | Enjoy and don't forget to send feedback at ks@exoplatform.com | The main content of default post. |
The default post values can be changed by editing text values in the string tag of each field.
With the sample code above, the org.exoplatform.forum.service.conf.PostData object is called only one time. It means that only one default post is defined inside the default topic named Demo data policy. If you want to define more default posts, repeat calling the org.exoplatform.forum.service.conf.PostData object and define values for the new post with the sample code as below:
<value>
<object type="org.exoplatform.forum.service.conf.PostData">
<field name=" ">
...
</field>
</object>
</value>
By default, the default Forum data can only be changed by modifying the services-configuration.xml file.
At runtime, the new changes in the services-configuration.xml file will be executed and updated. The default Forum data will be created correspondingly.