In Mosaic tiles with Plone 5, I have used /@@contentlisting for both collections and folders. ( /@@contentlisting ). Now I get an error both for ${item/Title} and ${item/getObject / item.getObject() )
PS: I am not sure how to debug, since I can not 'import pdb' in fragments (unrestricted python)
UPDATE: There must be a bug somewhere, I get same errors on a fresh 6.1 site with collective.sidebar
Exception: zExceptions.NotFound: getObject
- Expression: "item/getObject"
- Filename: collection_slider
- Location: (line 11: col 40)
- Arguments: template: <ZopePageTemplate at /Plone1/asdfasdf-2/collection_slider>
here: <Document at /Plone1/asdfasdf-2>
context: <Document at /Plone1/asdfasdf-2>
container: <Document at /Plone1/asdfasdf-2>
nothing: None
options: {'args': ()}
root: <Application at >
request: <WSGIRequest, URL=http://ubuntu.local:8610/Plone1/asdfasdf-2/@@collective.themefragments.fragment/a2e15fe8c0644e178068f493cd1f655a>
modules: <Products.PageTemplates.ZRPythonExpr._SecureModuleImporter object at 0x7fc31c6d2270>
view: <collective.themefragments.traversal.FragmentView object at 0x7fc2e3a3d950>
portal_url: 'http://ubuntu.local:8610/Plone1'
portal: <PloneSite at /Plone1>
user: <PropertiedUser 'admin'>
default: <DEFAULT>
repeat: <Products.PageTemplates.engine.RepeatDictWrapper object at 0x7fc31869e750>
loop: {'item': <Products.PageTemplates.engine.RepeatItem object at 0x7fc2e3a3ddb0>}
target_language: None
translate: <function BaseTemplate.render.<locals>.translate at 0x7fc2f010da80>
attrs: {}
image_size: 'preview'
collection_items: <Collection at /Plone1/news/aggregator>
order: 'top'
show_text: True
item_c: 1000
items: <plone.app.contentlisting.contentlisting.ContentListing object at 0x7fc2f00f81a0>
item: <plone.app.contentlisting.catalog.CatalogContentListingObject instance at /Plone1/news/copy3_of_afdsasdfa-asdf>