-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the Plone Site FTI if it is not a dexterity one
- Loading branch information
Showing
5 changed files
with
128 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0"?> | ||
<object name="portal_types" meta_type="Plone Types Tool"> | ||
<object name="Plone Site" meta_type="Dexterity FTI" /> | ||
</object> |
79 changes: 79 additions & 0 deletions
79
plone/app/upgrade/v60/profiles/to_dx_site_root/types/Plone_Site.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
<?xml version="1.0"?> | ||
<object | ||
i18n:domain="plone" | ||
meta_type="Dexterity FTI" | ||
name="Plone Site" | ||
xmlns:i18n="http://xml.zope.org/namespaces/i18n"> | ||
|
||
<!-- Basic properties --> | ||
<property | ||
i18n:translate="" | ||
name="title">Plone Site</property> | ||
<property | ||
i18n:translate="" | ||
name="description"></property> | ||
|
||
<property name="allow_discussion">False</property> | ||
<property name="factory">manage_addSite</property> | ||
<property name="icon_expr"></property> | ||
<property name="link_target"></property> | ||
|
||
<!-- Hierarchy control --> | ||
<property name="allowed_content_types"/> | ||
<property name="filter_content_types">False</property> | ||
<property name="global_allow">False</property> | ||
|
||
<!-- Schema, class and security --> | ||
<property name="add_permission">cmf.AddPortalContent</property> | ||
<property name="klass">Products.CMFPlone.Portal.PloneSite</property> | ||
<property name="model_file">plone.app.contenttypes.schema:folder.xml</property> | ||
<property name="model_source"></property> | ||
<property name="schema"></property> | ||
|
||
<!-- Enabled behaviors --> | ||
<property name="behaviors" purge="false"> | ||
<element value="plone.dublincore" /> | ||
<element value="plone.richtext" /> | ||
<element value="plone.relateditems" /> | ||
<element value="plone.locking" /> | ||
<element value="plone.allowdiscussion" /> | ||
<element value="plone.excludefromnavigation" /> | ||
<element value="plone.tableofcontents" /> | ||
</property> | ||
|
||
<!-- View information --> | ||
<property name="add_view_expr">string:${folder_url}/addPlone Site</property> | ||
<property name="default_view">listing_view</property> | ||
<property name="default_view_fallback">False</property> | ||
<property name="immediate_view">view</property> | ||
<property name="view_methods"> | ||
<element value="album_view"/> | ||
<element value="event_listing"/> | ||
<element value="full_view"/> | ||
<element value="listing_view"/> | ||
<element value="summary_view"/> | ||
<element value="tabular_view"/> | ||
</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)"/> | ||
<action title="View" action_id="view" category="object" condition_expr="" | ||
url_expr="string:${object_url}" visible="True" | ||
i18n:attributes="title"> | ||
<permission value="View"/> | ||
</action> | ||
<action | ||
action_id="edit" | ||
category="object" | ||
condition_expr="not:object/@@plone_lock_info/is_locked_for_current_user|python:True" | ||
i18n:attributes="title" | ||
title="Edit" | ||
url_expr="string:${object_url}/edit" | ||
visible="True"> | ||
<permission value="Modify portal content"/> | ||
</action> | ||
|
||
</object> |