We use a different workflow for comments: The View permission is acquired instead of given explicitly, as outlined in https://dev.plone.org/ticket/12531.
48 lines
1.6 KiB
XML
48 lines
1.6 KiB
XML
<?xml version="1.0"?>
|
|
<object name="sample_content_type"
|
|
meta_type="Dexterity FTI"
|
|
i18n:domain="freitag.discussion" xmlns:i18n="http://xml.zope.org/namespaces/i18n">
|
|
|
|
<!-- Basic metadata -->
|
|
<property name="title" i18n:translate="">sample_content_type</property>
|
|
<property name="description"
|
|
i18n:translate="">Sample Content</property>
|
|
<property name="content_icon">document_icon.png</property>
|
|
<property name="global_allow">True</property>
|
|
<property name="filter_content_types">True</property>
|
|
<property name="allowed_content_types">
|
|
</property>
|
|
<property name="allow_discussion">True</property>
|
|
|
|
<property name="klass">plone.dexterity.content.Item</property>
|
|
|
|
<property name="add_permission">cmf.AddPortalContent</property>
|
|
<property name="behaviors">
|
|
<element value="plone.app.content.interfaces.INameFromTitle" />
|
|
</property>
|
|
|
|
<!-- View information -->
|
|
<property name="default_view">view</property>
|
|
<property name="default_view_fallback">False</property>
|
|
<property name="view_methods">
|
|
<element value="view" />
|
|
</property>
|
|
|
|
<!-- Method aliases -->
|
|
<alias from="(Default)" to="(selected layout)" />
|
|
<alias from="edit" to="@@edit" />
|
|
<alias from="sharing" to="@@sharing" />
|
|
<alias from="view" to="@@view" />
|
|
|
|
<!-- Actions -->
|
|
<action title="View" action_id="view" category="object" condition_expr=""
|
|
url_expr="string:${object_url}/" visible="True">
|
|
<permission value="View" />
|
|
</action>
|
|
|
|
<action title="Edit" action_id="edit" category="object" condition_expr=""
|
|
url_expr="string:${object_url}/edit" visible="True">
|
|
<permission value="Modify portal content" />
|
|
</action>
|
|
</object>
|