<?xml version="1.0"?>
<object name="ftw.events.EventPage"
        meta_type="Dexterity FTI"
        xmlns:i18n="http://xml.zope.org/namespaces/i18n"
        i18n:domain="ftw.events" >

    <!-- Basic metadata -->
    <property name="title" i18n:translate="">Event Page</property>
    <property name="icon_expr"></property>
    <property name="allow_discussion">False</property>
    <property name="global_allow">False</property>
    <property name="filter_content_types">True</property>
    <property name="allowed_content_types">
        <element value="ftw.simplelayout.FileListingBlock" />
        <element value="ftw.simplelayout.GalleryBlock" />
        <element value="ftw.simplelayout.MapBlock" />
        <element value="ftw.simplelayout.TextBlock" />
        <element value="ftw.simplelayout.VideoBlock" />
    </property>

    <!-- schema interface -->
    <property name="schema">ftw.events.contents.eventpage.IEventPageSchema</property>

    <!-- class used for content items -->
    <property name="klass">ftw.events.contents.eventpage.EventPage</property>

    <!-- add permission -->
    <property name="add_permission">ftw.events.AddEventPage</property>

    <!-- enabled behaviors -->
    <property name="behaviors">
        <element value="collective.dexteritytextindexer.behavior.IDexterityTextIndexer" />
        <element value="ftw.simplelayout.interfaces.ISimplelayout" />
        <element value="plone.app.content.interfaces.INameFromTitle" />
        <element value="plone.app.dexterity.behaviors.metadata.IBasic"/>
        <element value="plone.app.event.dx.behaviors.IEventBasic"/>
        <element value="plone.app.event.dx.behaviors.IEventRecurrence"/>
        <element value="ftw.keywordwidget.behavior.IKeywordCategorization" />
        <element value="plone.app.referenceablebehavior.referenceable.IReferenceable"/>
        <element value="ftw.events.behaviors.location.ILocationFields"/>
    </property>

    <!-- View information -->
    <property name="default_view">@@simplelayout-view</property>
    <property name="default_view_fallback">False</property>
    <property name="view_methods">
        <element value="@@simplelayout-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)"/>

    <!-- Actions -->
    <action
        action_id="view"
        title="View"
        category="object"
        condition_expr=""
        url_expr="string:${object_url}"
        visible="True">
        <permission value="View"/>
    </action>

    <action
        action_id="edit"
        title="Edit"
        category="object"
        condition_expr=""
        url_expr="string:${object_url}/edit"
        visible="True">
        <permission value="Modify portal content"/>
    </action>

</object>
