How to override view/template of a default content type (e.g. Document) with zcml? Since I need some logic and want to be explicit jbot is not suitable. Registering a new view as described in docs works like a charm.
I tried to register my view under the same name "document_view" using a custom layer:
<browser:page name="document_view" for="plone.app.contenttypes.interfaces.IDocument" permission="zope2.View" class=".views.DocumentView" menu="plone_displayviews" layer="plonetheme.mytheme.interfaces.IPlonethemeMythemeLayer" title="Foo Bar" />