Skip to content

Commit

Permalink
Add and load plone6 compatible resources
Browse files Browse the repository at this point in the history
  • Loading branch information
Gomez committed Oct 24, 2023
1 parent 2ab6cac commit 8d614a4
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 13 deletions.
38 changes: 25 additions & 13 deletions src/collective/eeafaceted/z3ctable/profiles.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,37 @@
xmlns="http://namespaces.zope.org/zope"
xmlns:zcml="http://namespaces.zope.org/zcml"
xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
xmlns:five="http://namespaces.zope.org/five"
i18n_domain="collective.eeafaceted.collectionwidget">

<genericsetup:registerProfile
zcml:condition="have plone-5"
zcml:condition="have plone-60"
name="default"
directory="profiles/plone5"
directory="profiles/plone6"
title="collective.eeafaceted.z3ctable"
description="Extension profile for collective.eeafaceted.z3ctable."
provides="Products.GenericSetup.interfaces.EXTENSION" />

<genericsetup:registerProfile
zcml:condition="not-have plone-5"
name="default"
directory="profiles/plone4"
title="collective.eeafaceted.z3ctable"
description="Extension profile for collective.eeafaceted.z3ctable."
provides="Products.GenericSetup.interfaces.EXTENSION" />


<configure zcml:condition="not-have plone-60">
<genericsetup:registerProfile
zcml:condition="have plone-5"
name="default"
directory="profiles/plone5"
title="collective.eeafaceted.z3ctable"
description="Extension profile for collective.eeafaceted.z3ctable."
provides="Products.GenericSetup.interfaces.EXTENSION" />
</configure>

<configure zcml:condition="not-have plone-60">
<configure zcml:condition="not-have plone-5">
<genericsetup:registerProfile
name="default"
directory="profiles/plone4"
title="collective.eeafaceted.z3ctable"
description="Extension profile for collective.eeafaceted.z3ctable."
provides="Products.GenericSetup.interfaces.EXTENSION" />
</configure>
</configure>

<genericsetup:registerProfile
name="universal"
directory="profiles/common"
Expand Down Expand Up @@ -55,5 +67,5 @@
description=""
import_steps="jsregistry" />
</genericsetup:upgradeSteps>

</configure>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0"?>
<metadata>
<version>3</version>
<dependencies>
<dependency>profile-collective.eeafaceted.z3ctable:universal</dependency>
</dependencies>
</metadata>
19 changes: 19 additions & 0 deletions src/collective/eeafaceted/z3ctable/profiles/plone6/registry.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0"?>
<registry>

<records interface="Products.CMFPlone.interfaces.IBundleRegistry"
prefix="plone.bundles/faceted-vars-z3ctable">
<value key="enabled">True</value>
<value key="jscompilation">collective_eeafaceted_z3ctable_js_variables.js</value>
<value key="load_defer">False</value>
<value key="load_async">False</value>
</records>

<records interface="Products.CMFPlone.interfaces.IBundleRegistry"
prefix="plone.bundles/faceted-z3ctable">
<value key="enabled">True</value>
<value key="jscompilation">++resource++collective.eeafaceted.z3ctable/collective.eeafaceted.z3ctable.js</value>
<value key="load_defer">False</value>
<value key="load_async">False</value>
</records>
</registry>

0 comments on commit 8d614a4

Please sign in to comment.