Skip to content

Commit

Permalink
Merge pull request #67 from collective/djay/fix_geo_portlets
Browse files Browse the repository at this point in the history
fix bug where portlets manager is missing and plone doesn't start up …
  • Loading branch information
petschki committed Jul 18, 2019
2 parents 0a0d736 + 6b3baff commit 06d2bde
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 7 deletions.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ Changelog
[djay]
- Fix 5.2 where operators should not be used on all index types
[djay]

- Fix bug where portlets didn't work without GeoLocation dependencies
[djay]

3.1 (2019-06-06)
----------------
Expand Down
11 changes: 10 additions & 1 deletion src/collective/collectionfilter/portlets/configure.zcml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
xmlns:zcml="http://namespaces.zope.org/zcml"
i18n_domain="collective.collectionfilter">

<include package="plone.app.portlets" />
<include package="plone.app.portlets" />

<plone:portlet
name="collective.collectionfilter.portlets.CollectionFilter"
Expand Down Expand Up @@ -50,6 +50,15 @@
provides="Products.GenericSetup.interfaces.EXTENSION"
/>

<genericsetup:registerProfile
zcml:condition="installed collective.geolocationbehavior"
name="portlets_with_maps"
title="collective.collectionfilter portlets"
directory="profiles/portlets_with_maps"
description='Extension profile for Plone.'
provides="Products.GenericSetup.interfaces.EXTENSION"
/>

<genericsetup:registerProfile
name="uninstall"
title="collective.collectionfilter portlets uninstall"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,4 @@
title="Collection Search"
description="This portlet allows fulltext search in collection results."
/>
<portlet
addview="collective.collectionfilter.portlets.CollectionMaps"
title="Collection Maps"
description="This portlet allows map filtering in collection results."
/>
</portlets>
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0"?>
<metadata>
<version>2</version>
<dependencies>
<dependency>profile-collective.collectionfilter:default</dependency>
</dependencies>
</metadata>
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0"?>
<portlets>
<portlet
addview="collective.collectionfilter.portlets.CollectionFilter"
title="Collection Filter"
description="Portlet that groups collections items by criteria."
/>
<portlet
addview="collective.collectionfilter.portlets.CollectionSearch"
title="Collection Search"
description="This portlet allows fulltext search in collection results."
/>
<portlet
addview="collective.collectionfilter.portlets.CollectionMaps"
title="Collection Maps"
description="This portlet allows map filtering in collection results."
/>
</portlets>
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,9 @@
remove="True"
addview="collective.collectionfilter.portlets.CollectionSearch"
/>
<portlet
rempve="True"
addview="collective.collectionfilter.portlets.CollectionMaps"
/>

</portlets>

0 comments on commit 06d2bde

Please sign in to comment.