Ticket #13143 (confirmed Feature Request)
plone.app.collection "results" method should have a kwarg to inject additional query row
Reported by: | jensens | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 4.x |
Component: | General | Version: | 4.3 |
Keywords: | collection | Cc: |
Description
It is not possible to add a custom query row while fetching the results from a custom view.
It would be easy to inject an additional row by passing a list of rows (refering to plone.app.querystring format here).
With old ATTopic this was very easy and was used a lot.
At the moment one need to get the Raw Querystring with context.getQuery and modify it and to the same as done in the results method of plone.app.collection afterwards. An example of such horrible code is here https://github.com/collective/collective.collection.yearview/blob/master/collective/collection/yearview/browser/views.py#L35
Change History
Note: See
TracTickets for help on using
tickets.