3be7ccb3987e57c874273bf5de44a09b6159e2e0
[Plinn.git] / profiles / default / types / Portfolio.xml
1 <?xml version="1.0"?>
2 <object name="Portfolio" meta_type="Factory-based Type Information"
3 xmlns:i18n="http://xml.zope.org/namespaces/i18n">
4 <property name="title">Collection</property>
5 <property name="description">Folder for photo storage</property>
6 <property name="icon_expr">string:${portal_url}/portfolio_icon.gif</property>
7 <property name="content_meta_type">Portfolio</property>
8 <property name="product"></property>
9 <property name="factory">portfolio.portfolio</property>
10 <property name="add_view_expr"></property>
11 <property name="link_target"></property>
12 <property name="immediate_view">object/view</property>
13 <property name="global_allow">True</property>
14 <property name="filter_content_types">True</property>
15 <property name="allowed_content_types">
16 <element value="Photo"/>
17 <element value="Portfolio"/>
18 </property>
19 <property name="allow_discussion">False</property>
20 <alias from="(Default)" to="portfolio_view"/>
21 <alias from="mkdir" to="createPortfolio"/>
22 <alias from="view" to="portfolio_view"/>
23 <action title="View" action_id="view" category="object" condition_expr=""
24 icon_expr="" link_target="" url_expr="string:${object_url}/portfolio_view"
25 visible="True">
26 <permission value="View"/>
27 </action>
28 <action title="Slide show" action_id="noajax" category="object"
29 condition_expr="python:object.listNearestFolderContents(contentFilter={'portal_type' : 'Photo'})"
30 icon_expr="" link_target="" url_expr="string:${object_url}/slide_show"
31 visible="True">
32 <permission value="View"/>
33 </action>
34 <action title="Presentation" action_id="presentation" category="object"
35 condition_expr="" icon_expr="" link_target=""
36 url_expr="string:${object_url}/portfolio_presentation_form"
37 visible="True">
38 <permission value="Modify portal content"/>
39 </action>
40 <action title="List" action_id="folderContents" category="object"
41 condition_expr="" icon_expr="" link_target=""
42 url_expr="string:${object_url}/folder_contents" visible="True">
43 <permission value="List folder contents"/>
44 </action>
45 <action title="Import" action_id="import" category="object" condition_expr=""
46 icon_expr="" link_target=""
47 url_expr="string:${object_url}/portfolio_edit_form" visible="True">
48 <permission value="Add portal content"/>
49 </action>
50 <action title="Share" action_id="localroles" category="object"
51 condition_expr="" icon_expr="" link_target=""
52 url_expr="string:${object_url}/folder_localrole_form" visible="True">
53 <permission value="Set Local Roles"/>
54 </action>
55 <action title="Printing settings" action_id="printing_settings"
56 category="object" condition_expr="" icon_expr="" link_target=""
57 url_expr="string:${object_url}/photoprint_templates_edit_form"
58 visible="True">
59 <permission value="Manage print order template"/>
60 </action>
61 <action title="Edit" action_id="edit" category="object" condition_expr=""
62 icon_expr="" link_target=""
63 url_expr="string:${object_url}/folder_contents" visible="False">
64 <permission value="Manage properties"/>
65 </action>
66 <action title="New..." action_id="new" category="object" condition_expr=""
67 icon_expr="" link_target=""
68 url_expr="string:${object_url}/folder_factories" visible="False">
69 <permission value="Add portal content"/>
70 </action>
71 <action title="Rename items" action_id="rename_items" category="object"
72 condition_expr="" icon_expr="" link_target=""
73 url_expr="string:${object_url}/folder_rename_form" visible="False">
74 <permission value="Add portal content"/>
75 </action>
76 <action title="mkdir" action_id="mkdir" category="object" condition_expr=""
77 icon_expr="" link_target="" url_expr="string:createPortfolio"
78 visible="False">
79 <permission value="Add portal content"/>
80 </action>
81 </object>