Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
base megafolder dexterity type added
- Loading branch information
1 parent
9def508
commit 3e938e3
Showing
7 changed files
with
116 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" | ||
xmlns:tal="http://xml.zope.org/namespaces/tal" | ||
xmlns:metal="http://xml.zope.org/namespaces/metal" | ||
xmlns:i18n="http://xml.zope.org/namespaces/i18n" | ||
lang="en" | ||
metal:use-macro="context/main_template/macros/master" | ||
i18n:domain="collective.megadrop"> | ||
<body> | ||
|
||
<metal:main fill-slot="main"> | ||
<tal:main-macro metal:define-macro="main"> | ||
|
||
<div tal:replace="structure provider:plone.abovecontenttitle" /> | ||
|
||
<h1 class="documentFirstHeading" tal:content="context/title" /> | ||
|
||
<div tal:replace="structure provider:plone.belowcontenttitle" /> | ||
|
||
<p class="documentDescription" tal:content="context/description" /> | ||
|
||
<div tal:replace="structure provider:plone.abovecontentbody" /> | ||
|
||
<div tal:content="structure context/body/output" /> | ||
|
||
<div tal:replace="structure provider:plone.belowcontentbody" /> | ||
|
||
</tal:main-macro> | ||
</metal:main> | ||
|
||
</body> | ||
</html> |
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 |
---|---|---|
@@ -1,4 +1,7 @@ | ||
<?xml version="1.0"?> | ||
<metadata> | ||
<version>1</version> | ||
<version>1</version> | ||
<dependencies> | ||
<dependency>profile-plone.app.z3cform:default</dependency> | ||
</dependencies> | ||
</metadata> |
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,3 @@ | ||
<object name="portal_types"> | ||
<object name="collective.megadrop.megafolder" meta_type="Dexterity FTI" /> | ||
</object> |
52 changes: 52 additions & 0 deletions
52
collective/megadrop/profiles/default/types/collective.megadrop.megafolder.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,52 @@ | ||
<?xml version="1.0"?> | ||
<object name="collective.megadrop.megafolder" meta_type="Dexterity FTI" | ||
i18n:domain="collective.megadrop" xmlns:i18n="http://xml.zope.org/namespaces/i18n"> | ||
|
||
<!-- Basic metadata --> | ||
<property name="title" i18n:translate="">Megadrop Navigation Folder</property> | ||
<property name="description" i18n:translate="">Megadrop Navigation Folder</property> | ||
<property name="content_icon">Folder_icon.gif</property> | ||
<property name="allow_discussion">False</property> | ||
<property name="global_allow">True</property> | ||
<property name="filter_content_types">False</property> | ||
<property name="allowed_content_types"></property> | ||
|
||
<!-- schema interface --> | ||
<property name="schema">collective.megadrop.megafolder.IDropFolder</property> | ||
|
||
<!-- class used for content items --> | ||
<property name="klass">plone.dexterity.content.Container</property> | ||
|
||
<!-- add permission --> | ||
<property name="add_permission">cmf.AddPortalContent</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.dexterity.behaviors.exclfromnav.IExcludeFromNavigation" /> | ||
</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> |
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