Ticket #8159 (closed Bug: fixed)
Subtopics are not displayed correctly
| Reported by: | naro | Owned by: | alecm |
|---|---|---|---|
| Priority: | major | Milestone: | 3.1.2 |
| Component: | Infrastructure | Keywords: | |
| Cc: |
Description
- create fresh Plone site (tested on 3.1 branch)
- click on Events
- create event starting-ending in the future and publish it (without effective date set)
- click on Events link again (to display all events)
Event is displayed both in active and contained events. That is wrong.
Attachments
Change History
Changed 4 years ago by naro
-
attachment
FirefoxScreenSnapz004.jpg
added
comment:2 Changed 4 years ago by sergey_v
Since my ticket was closed (sorry for duplicate), I'll post the fix here so it won't be overlooked
Actually the things are going in the following order:
- CMFPlone's folder_summary_view calls here/atct_topic_view/macros/folderlisting_macro
- ATCT's folderlisting_macro calls here/base/macros/folderlisting. Also it defines folderListing as here/getFolderListing
- Archetypes' folderlisting macro calls here/folder_listing/macros/listing
- CMFPlone's folder_listing displays the actual listing (aren't there too many levels of indirection, huh?). It never checks folderListing variable set at step 2 and instead makes its own call to either getFolderContents or queryCatalog.
So the fix seems to be as follows (folder_listing.pt, line 47):
folderContents folderContents|nothing; folderContents python:folderContents or is_a_topic and here.queryCatalog(contentFilter) or here.getFolderContents(contentFilter, batch=True, b_size=limit_display or 100);
Note: See
TracTickets for help on using
tickets.

Example