/
collective.nitf.content.xml
65 lines (57 loc) · 2.45 KB
/
collective.nitf.content.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<?xml version="1.0"?>
<object name="collective.nitf.content" meta_type="Dexterity FTI"
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
i18n:domain="collective.nitf">
<!-- Basic metadata -->
<property name="title" i18n:translate="">News Article</property>
<property name="description" i18n:translate="">A news article</property>
<property name="content_icon">++resource++collective.nitf/nitf_icon.png</property>
<property name="allow_discussion">True</property>
<property name="global_allow">True</property>
<property name="filter_content_types">True</property>
<property name="allowed_content_types">
<element value="File" />
<element value="Image" />
<element value="Link" />
</property>
<!-- schema interface -->
<property name="schema">collective.nitf.content.INITF</property>
<!-- class used for content items -->
<property name="klass">plone.dexterity.content.Container</property>
<!-- add permission -->
<property name="add_permission">collective.nitf.AddNewsArticle</property>
<!-- enabled behaviors -->
<property name="behaviors">
<element value="plone.app.content.interfaces.INameFromTitle" />
<element value="plone.app.dexterity.behaviors.metadata.IDublinCore" />
<element value="plone.app.referenceablebehavior.referenceable.IReferenceable" />
<element value="plone.app.relationfield.behavior.IRelatedItems" />
<element value="collective.upload.behaviors.IMultipleUpload" />
</property>
<!-- View information -->
<property name="default_view">view</property>
<property name="default_view_fallback">False</property>
<property name="view_methods">
<element value="view"/>
<element value="gallery"/>
</property>
<!-- Method aliases -->
<alias from="(Default)" to="(dynamic view)"/>
<alias from="edit" to="@@edit"/>
<alias from="sharing" to="@@sharing"/>
<alias from="view" to="(selected layout)"/>
<!-- 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>
<action title="Organize" action_id="organize" category="folder" condition_expr=""
url_expr="string:${object_url}/@@organize" visible="True"
i18n:attributes="title">
<permission value="Modify portal content"/>
</action>
</object>