Ticket #10169 (confirmed Feature Request)
make folder_listing folder_summary_view with custom topics too
Reported by: | frisi | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 4.x |
Component: | Templates/CSS | Version: | 4.0 |
Keywords: | Cc: |
Description
folder_summary_view, folder_listing etc currently only work for topics with portal_type "Topic" If on creates a new type based on topic all of the topic default views need to be customized in order to work properly.
instead of checking for the portal type explicitly as its done atm
folderContents python:context.portal_type=='Topic' and context.queryCatalog(contentFilter, batch=True) or context.getFolderContents(contentFilter, batch=True, b_size=limit_display or 100);
we could use some new view (possible something like this already is part of plone's infrastructure) to test whether the current context provides a certain interface
iface_view context/@@ifaceCheck; isTopic python:iface_view.contextProvides('Products.ATContentTypes.interfaces.topic.IATTopic') folderContents python:isTopic and context.queryCatalog(contentFilter, batch=True) or context.getFolderContents(contentFilter, batch=True, b_size=limit_display or 100);
which makes customizing the views unnecessary
risks: possible performance implications (looking up the view and check for the interface)
Change History
Note: See
TracTickets for help on using
tickets.