<configure
    xmlns="http://namespaces.zope.org/zope"
    xmlns:browser="http://namespaces.zope.org/browser"
    xmlns:zcml="http://namespaces.zope.org/zcml"
    >

  <configure zcml:condition="installed collective.externaleditor">

    <browser:page
        name="external_edit"
        for="*"
        class=".enable_externaleditor.EditView"
        permission="cmf.ModifyPortalContent"
        layer="collective.externaleditor.interfaces.IExternalEditorLayer"
        />

    <browser:page
        name="externalEditorEnabled"
        for="*"
        class=".enable_externaleditor.EnabledView"
        allowed_attributes="available"
        permission="zope2.View"
        layer="collective.externaleditor.interfaces.IExternalEditorLayer"
        />

  </configure>

</configure>
