eea.facetednavigation icon indicating copy to clipboard operation
eea.facetednavigation copied to clipboard

Filter Path widget items by navigation_settings.displayed_types

Open wolfixsol opened this issue 5 years ago • 1 comments

It would be nice if the path widget would us the "Displayed_types" from plone navigation settings for filtering the tree. It would be quite easy to implement.

In tree.py:

from zope.component import getUtility from plone.registry.interfaces import IRegistry from Products.CMFPlone.interfaces import INavigationSchema

..line 82 registry = getUtility(IRegistry) navigation_settings = registry.forInterface( INavigationSchema, prefix="plone", check=False ) query['portal_type'] = [t for t in navigation_settings.displayed_types]

I don't know if it would be necessary to make it optional for some reasons.

Cheers, Ingo

wolfixsol avatar Jan 07 '20 18:01 wolfixsol

@iwolfm Thank you! A Pull-Request would be appreciated.

avoinea avatar Mar 19 '20 12:03 avoinea