Skip to content

Commit

Permalink
Added condition on Archetypes warning viewlet to ensure the product w…
Browse files Browse the repository at this point in the history
…ill work for Dexterity only sites.
  • Loading branch information
Bo Simonsen committed Feb 13, 2014
1 parent a76ffc3 commit 7182d5a
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions plone/app/contenttypes/browser/configure.zcml
Expand Up @@ -2,6 +2,7 @@
xmlns="http://namespaces.zope.org/zope"
xmlns:browser="http://namespaces.zope.org/browser"
xmlns:plone="http://namespaces.plone.org/plone"
xmlns:zcml="http://namespaces.zope.org/zcml"
i18n_domain="plone">

<include package="plone.app.contentmenu" />
Expand Down Expand Up @@ -241,15 +242,17 @@
allowed_interface="plone.app.contenttypes.browser.utils.IUtils"
/>

<browser:viewlet
name="archetypes_warning_viewlet"
for="Products.Archetypes.interfaces.base.IBaseObject"
manager="plone.app.layout.viewlets.interfaces.IAboveContent"
class=".viewlets.ATWarningViewlet"
template="templates/archetypes_warning_viewlet.pt"
layer="plone.app.contenttypes.interfaces.IPloneAppContenttypesLayer"
permission="cmf.ModifyPortalContent" />

<configure zcml:condition="installed Products.Archetypes">
<browser:viewlet
name="archetypes_warning_viewlet"
for="Products.Archetypes.interfaces.base.IBaseObject"
manager="plone.app.layout.viewlets.interfaces.IAboveContent"
class=".viewlets.ATWarningViewlet"
template="templates/archetypes_warning_viewlet.pt"
layer="plone.app.contenttypes.interfaces.IPloneAppContenttypesLayer"
permission="cmf.ModifyPortalContent"
/>
</configure>
<!-- Query string widget -->
<adapter factory=".widgets.QueryStringFieldWidget" />

Expand Down

0 comments on commit 7182d5a

Please sign in to comment.