Skip to content

Commit

Permalink
Make locationfilter 5.0.x compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
instification committed Jul 11, 2019
1 parent 0b3d4d8 commit 0652e52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions src/collective/collectionfilter/portlets/locationfilter.pt
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
<aside class="portlet portletNavigationTree ${view/filterClassName} locationFilter ${view/settings/patCollectionFilter}"
data-pat-collectionfilter='{
"collectionUUID": "${view/settings/target_collection}",
"reloadURL": "${view/reload_url}",
"contentSelector": "${view/settings/content_selector}"
}'
<aside class="portlet portletNavigationTree ${view/filterClassName} locationFilter"
data-pat-collectionfilter='${view/pat_options}'
tal:condition="view/available"
i18n:domain="plone">

Expand Down
2 changes: 1 addition & 1 deletion src/collective/collectionfilter/portlets/locationfilter.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def title(self):
return _(u'Collection Location Filter')


class Renderer(base.Renderer, BaseLocationView):
class Renderer(BasePortletRenderer, BaseLocationView):
render = ViewPageTemplateFile('locationfilter.pt')

@property
Expand Down

0 comments on commit 0652e52

Please sign in to comment.