Update gs howto.

This commit is contained in:
tisto 2012-01-25 23:21:36 +01:00 committed by Timo Stollenwerk
parent 65590732ea
commit 7481980c4f
2 changed files with 38 additions and 13 deletions

View File

@ -5,12 +5,14 @@ How to set discussion settings with generic setup
This document explains how to set plone.app.discussion's settings with a This document explains how to set plone.app.discussion's settings with a
generic setup profile. generic setup profile.
plone.app.discussion uses plone.app.registry ... plone.app.discussion uses plone.app.registry to store its global settings.
You can set or override the settings in the registry.xml file of your generic
registry.xml:: setup profile::
<registry> <registry>
<record field="anonymous_comments" interface="plone.app.discussion.interfaces.IDiscussionSettings" name="plone.app.discussion.interfaces.IDiscussionSettings.anonymous_comments"> <record
field="anonymous_comments" interface="plone.app.discussion.interfaces.IDiscussionSettings"
name="plone.app.discussion.interfaces.IDiscussionSettings.anonymous_comments">
<field type="plone.registry.field.Bool"> <field type="plone.registry.field.Bool">
<default>False</default> <default>False</default>
<description>help_anonymous_comments</description> <description>help_anonymous_comments</description>
@ -19,7 +21,10 @@ registry.xml::
</field> </field>
<value>False</value> <value>False</value>
</record> </record>
<record field="captcha" interface="plone.app.discussion.interfaces.IDiscussionSettings" name="plone.app.discussion.interfaces.IDiscussionSettings.captcha"> <record
field="captcha"
interface="plone.app.discussion.interfaces.IDiscussionSettings"
name="plone.app.discussion.interfaces.IDiscussionSettings.captcha">
<field type="plone.registry.field.Choice"> <field type="plone.registry.field.Choice">
<default>disabled</default> <default>disabled</default>
<description>help_captcha</description> <description>help_captcha</description>
@ -28,7 +33,10 @@ registry.xml::
</field> </field>
<value>disabled</value> <value>disabled</value>
</record> </record>
<record field="globally_enabled" interface="plone.app.discussion.interfaces.IDiscussionSettings" name="plone.app.discussion.interfaces.IDiscussionSettings.globally_enabled"> <record
field="globally_enabled"
interface="plone.app.discussion.interfaces.IDiscussionSettings"
name="plone.app.discussion.interfaces.IDiscussionSettings.globally_enabled">
<field type="plone.registry.field.Bool"> <field type="plone.registry.field.Bool">
<default>False</default> <default>False</default>
<description>help_globally_enabled</description> <description>help_globally_enabled</description>
@ -37,7 +45,9 @@ registry.xml::
</field> </field>
<value>False</value> <value>False</value>
</record> </record>
<record field="moderation_enabled" interface="plone.app.discussion.interfaces.IDiscussionSettings" name="plone.app.discussion.interfaces.IDiscussionSettings.moderation_enabled"> <record
field="moderation_enabled"
interface="plone.app.discussion.interfaces.IDiscussionSettings" name="plone.app.discussion.interfaces.IDiscussionSettings.moderation_enabled">
<field type="plone.registry.field.Bool"> <field type="plone.registry.field.Bool">
<default>False</default> <default>False</default>
<description>help_moderation_enabled</description> <description>help_moderation_enabled</description>
@ -46,7 +56,10 @@ registry.xml::
</field> </field>
<value>False</value> <value>False</value>
</record> </record>
<record field="moderator_email" interface="plone.app.discussion.interfaces.IDiscussionSettings" name="plone.app.discussion.interfaces.IDiscussionSettings.moderator_email"> <record
field="moderator_email"
interface="plone.app.discussion.interfaces.IDiscussionSettings"
name="plone.app.discussion.interfaces.IDiscussionSettings.moderator_email">
<field type="plone.registry.field.ASCIILine"> <field type="plone.registry.field.ASCIILine">
<description>help_moderator_email</description> <description>help_moderator_email</description>
<required>False</required> <required>False</required>
@ -54,7 +67,10 @@ registry.xml::
</field> </field>
<value /> <value />
</record> </record>
<record field="moderator_notification_enabled" interface="plone.app.discussion.interfaces.IDiscussionSettings" name="plone.app.discussion.interfaces.IDiscussionSettings.moderator_notification_enabled"> <record
field="moderator_notification_enabled"
interface="plone.app.discussion.interfaces.IDiscussionSettings"
name="plone.app.discussion.interfaces.IDiscussionSettings.moderator_notification_enabled">
<field type="plone.registry.field.Bool"> <field type="plone.registry.field.Bool">
<default>False</default> <default>False</default>
<description>help_moderator_notification_enabled</description> <description>help_moderator_notification_enabled</description>
@ -63,7 +79,10 @@ registry.xml::
</field> </field>
<value>False</value> <value>False</value>
</record> </record>
<record field="show_commenter_image" interface="plone.app.discussion.interfaces.IDiscussionSettings" name="plone.app.discussion.interfaces.IDiscussionSettings.show_commenter_image"> <record
field="show_commenter_image"
interface="plone.app.discussion.interfaces.IDiscussionSettings"
name="plone.app.discussion.interfaces.IDiscussionSettings.show_commenter_image">
<field type="plone.registry.field.Bool"> <field type="plone.registry.field.Bool">
<default>True</default> <default>True</default>
<description>help_show_commenter_image</description> <description>help_show_commenter_image</description>
@ -72,7 +91,10 @@ registry.xml::
</field> </field>
<value>True</value> <value>True</value>
</record> </record>
<record field="text_transform" interface="plone.app.discussion.interfaces.IDiscussionSettings" name="plone.app.discussion.interfaces.IDiscussionSettings.text_transform"> <record
field="text_transform"
interface="plone.app.discussion.interfaces.IDiscussionSettings"
name="plone.app.discussion.interfaces.IDiscussionSettings.text_transform">
<field type="plone.registry.field.Choice"> <field type="plone.registry.field.Choice">
<default>text/plain</default> <default>text/plain</default>
<description>help_text_transform</description> <description>help_text_transform</description>
@ -81,7 +103,10 @@ registry.xml::
</field> </field>
<value>text/plain</value> <value>text/plain</value>
</record> </record>
<record field="user_notification_enabled" interface="plone.app.discussion.interfaces.IDiscussionSettings" name="plone.app.discussion.interfaces.IDiscussionSettings.user_notification_enabled"> <record
field="user_notification_enabled"
interface="plone.app.discussion.interfaces.IDiscussionSettings"
name="plone.app.discussion.interfaces.IDiscussionSettings.user_notification_enabled">
<field type="plone.registry.field.Bool"> <field type="plone.registry.field.Bool">
<default>False</default> <default>False</default>
<description>help_user_notification_enabled</description> <description>help_user_notification_enabled</description>
@ -91,4 +116,3 @@ registry.xml::
<value>False</value> <value>False</value>
</record> </record>
</registry> </registry>

View File

@ -7,3 +7,4 @@ Howtos
howto_extend_the_comment_form.txt howto_extend_the_comment_form.txt
howto_override_enable_conversation.txt howto_override_enable_conversation.txt
howto_set_discussion_settings_with_generic_setup.txt