Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Branch: refs/heads/master Date: 2015-02-27T04:30:36+01:00 Author: Johannes Raggam (thet) <raggam-nl@adm.at> Commit: plone/plone.app.contenttypes@01198b9 add Plone Site and configure new view names for it Files changed: A plone/app/contenttypes/profiles/default/types/Plone_Site.xml A plone/app/contenttypes/profiles/uninstall/types/Plone_Site.xml M plone/app/contenttypes/profiles/default/types.xml M plone/app/contenttypes/profiles/uninstall/types.xml diff --git a/plone/app/contenttypes/profiles/default/types.xml b/plone/app/contenttypes/profiles/default/types.xml index ac9b7eb..4e13ba7 100644 --- a/plone/app/contenttypes/profiles/default/types.xml +++ b/plone/app/contenttypes/profiles/default/types.xml @@ -22,5 +22,8 @@ <object meta_type="Dexterity FTI" name="Image" /> <object meta_type="Dexterity FTI" name="News Item" /> <object meta_type="Dexterity FTI" name="Event" /> + + <object name="Plone Site" + meta_type="Factory-based Type Information with dynamic views"/> </object> diff --git a/plone/app/contenttypes/profiles/default/types/Plone_Site.xml b/plone/app/contenttypes/profiles/default/types/Plone_Site.xml new file mode 100644 index 0000000..bd03b87 --- /dev/null +++ b/plone/app/contenttypes/profiles/default/types/Plone_Site.xml @@ -0,0 +1,13 @@ +<?xml version="1.0"?> +<object name="Plone Site" meta_type="Factory-based Type Information with dynamic views" i18n:domain="plone" xmlns:i18n="http://xml.zope.org/namespaces/i18n"> + <property name="immediate_view">listing_view</property> + <property name="default_view">listing_view</property> + <property name="view_methods"> + <element value="listing_view" /> + <element value="summary_view" /> + <element value="tabular_view" /> + <element value="full_view" /> + <element value="album_view" /> + <element value="event_listing" /> + </property> +</object> diff --git a/plone/app/contenttypes/profiles/uninstall/types.xml b/plone/app/contenttypes/profiles/uninstall/types.xml index fcd0b15..fca8606 100644 --- a/plone/app/contenttypes/profiles/uninstall/types.xml +++ b/plone/app/contenttypes/profiles/uninstall/types.xml @@ -24,4 +24,8 @@ meta_type="Factory-based Type Information with dynamic views"/> <object name="News Item" meta_type="Factory-based Type Information with dynamic views"/> + + <object name="Plone Site" + meta_type="Factory-based Type Information with dynamic views"/> + </object> diff --git a/plone/app/contenttypes/profiles/uninstall/types/Plone_Site.xml b/plone/app/contenttypes/profiles/uninstall/types/Plone_Site.xml new file mode 100644 index 0000000..316c0c5 --- /dev/null +++ b/plone/app/contenttypes/profiles/uninstall/types/Plone_Site.xml @@ -0,0 +1,12 @@ +<?xml version="1.0"?> +<object name="Plone Site" meta_type="Factory-based Type Information with dynamic views" i18n:domain="plone" xmlns:i18n="http://xml.zope.org/namespaces/i18n"> + <property name="immediate_view">folder_listing</property> + <property name="default_view">folder_listing</property> + <property name="view_methods"> + <element value="folder_listing" /> + <element value="folder_summary_view" /> + <element value="folder_full_view" /> + <element value="folder_tabular_view" /> + <element value="atct_album_view" /> + </property> +</object> Repository: plone.app.contenttypes Branch: refs/heads/master Date: 2015-02-27T04:34:57+01:00 Author: Johannes Raggam (thet) <raggam-nl@adm.at> Commit: plone/plone.app.contenttypes@972c589 When installing the default profile, restrict uninstalling of old types to old FTI based ones. Files changed: M docs/CHANGES.rst M plone/app/contenttypes/profiles/default/types.xml diff --git a/docs/CHANGES.rst b/docs/CHANGES.rst index 30dc2c0..61d9679 100644 --- a/docs/CHANGES.rst +++ b/docs/CHANGES.rst @@ -4,6 +4,10 @@ Changelog 1.2 (unreleased) ---------------- +- When installing the default profile, restrict uninstalling of old types to + old FTI based ones. + [thet] + - Reformatted all templates for 2 space indentation, 4 space for attributes. [thet] diff --git a/plone/app/contenttypes/profiles/default/types.xml b/plone/app/contenttypes/profiles/default/types.xml index 4e13ba7..30011bd 100644 --- a/plone/app/contenttypes/profiles/default/types.xml +++ b/plone/app/contenttypes/profiles/default/types.xml @@ -4,15 +4,24 @@ <!-- We remove old ATContentTypes if they exist. Instances of these types can still be looked at since the skin-templates in CMFPlone are there but they cannot be edited --> - <object name="Collection" remove="True"/> - <object name="Document" remove="True"/> - <object name="Event" remove="True"/> - <object name="File" remove="True"/> - <object name="Folder" remove="True"/> - <object name="Image" remove="True"/> - <object name="Link" remove="True"/> - <object name="News Item" remove="True"/> - <object name="Topic" remove="True"/> + <object name="Collection" remove="True" + meta_type="Factory-based Type Information with dynamic views"/> + <object name="Document" remove="True" + meta_type="Factory-based Type Information with dynamic views"/> + <object name="Event" remove="True" + meta_type="Factory-based Type Information with dynamic views"/> + <object name="File" remove="True" + meta_type="Factory-based Type Information with dynamic views"/> + <object name="Folder" remove="True" + meta_type="Factory-based Type Information with dynamic views"/> + <object name="Image" remove="True" + meta_type="Factory-based Type Information with dynamic views"/> + <object name="Link" remove="True" + meta_type="Factory-based Type Information with dynamic views"/> + <object name="News Item" remove="True" + meta_type="Factory-based Type Information with dynamic views"/> + <object name="Topic" remove="True" + meta_type="Factory-based Type Information with dynamic views"/> <object meta_type="Dexterity FTI" name="Collection" /> <object meta_type="Dexterity FTI" name="Document" />
- Loading branch information