-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add section filter portlet #26
Conversation
@agitator thanks for the feedback For this initial version I decided to match the style of the navigation portlet so it is visually in keeping with other portlets. I don't know of any existing tree widget in Plone/Barceloneta and it would be a lot to try and implement something new. But if you had some ideas I will look at it. However, the functionality of this initial version is limited, you can only filter down to a single folderish location. So a tree widget would need more work to implement. Also as it would need to execute more searches to build the tree, it might be costly. |
I like the styling of the navigation portlet better than the tree widget. |
I like the location filtering feature. But I think we could make the filter portlet/tile generation a bit more generic in general. In a project of us I needed a filter item for tree-like taxonomies (created by |
@petschki Sounds all good. |
@thet I don't have a problem renaming it to path, but I notice that on collections you can have a criteria of location which is the same. So there seems to be a lack of consistency within Plone. |
@petschki generally agree with you, but it seems like a more fundamental change to the package, and it's not something I'll have time to implement. Perhaps it might make more sense as a separate issue/feature request? |
@instification I agree, there is some inconsistency. |
061b756
to
bf63dc0
Compare
bf63dc0
to
70c9c61
Compare
@thet I agree that Location is overloaded so can be confusing but I think Path might be a little too technical and be related too much to how people understand Plone rather than websites. I'd suggest "Section" instead. Plone used to have a section filter in its quicksearch. Although it did only work for the first level of navigation I believe section applies to subsections and lower level paths too. |
70c9c61
to
c5100c9
Compare
396cf15
to
ec1e0ca
Compare
…test subfolders/pages into account.
…ollection filters
# Conflicts: # CHANGES.rst
I don't think its that similar. Currently doing a filter of "Location" doesn't seem to work at all. In terms of adding "templates", I think there is already too much technical customisation features in the UI for something that should be end user friendly. Is it possible to get this reviewed so we can merge it? |
The more I look at the code, the more I think it can be handled with some modifications to the IGroupByModifier mechanism.
|
replaced by #136 |
This PR adds a 'Location Filter' portlet which allows the user to filter content according to its position in the site.
It mimics the 'Navigation Portlet' but is filtered based on the contents of the collection.
I haven't added a corresponding tile, but I will do if it's required to get this PR merged.
Likewise the ajax updates aren't working. I might need some help debugging that, but it works ok reloading the page.
We need this functionality for a project and feel it would be better to improve this package rather than create a new package as there is a lot of shared concepts/code to produce the portlet.
Changes to make