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

    <!-- Basic metadata -->
    <property name="title" i18n:translate="">EventListingBlock</property>
    <property name="description" i18n:translate="">The event listing block renders a configurable list of event pages.</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"></property>

    <!-- schema interface -->
    <property name="schema">ftw.events.contents.eventlistingblock.IEventListingBlockSchema</property>

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

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

    <!-- enabled behaviors -->
    <property name="behaviors">
        <element value="plone.app.content.interfaces.INameFromTitle" />
        <element value="ftw.simplelayout.interfaces.ISimplelayoutBlock" />
        <element value="plone.app.referenceablebehavior.referenceable.IReferenceable"/>
    </property>

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

</object>
