Tim Tisdall wrote:
Okay, I've looked through the SVN trunk again and found the following:folderish = getattr(aq_base(context), 'isPrincipiaFolderish', False) and not INonStructuralFolder.providedBy(context) if folderish: return '/'.join(context.getPhysicalPath()) else: return '/'.join(aq_parent(context).getPhysicalPath())This is good, but how could I also include the case when the folder is empty? Or does the INonStructuralFolder account for this too? For example, you'd probably want to list subfolder/subtopics in a smart folder when they exist, but if they don't exist I'd like to display the parent folder instead of nothing. Displaying an empty navigation doesn't seem particularly useful.
I don't think that helps. Having any empty folder show its parent contents makes no sense (not even as an option).
If I'm understanding your report correctly, the problem is that you have a folder for which there are no "eligible" children (i.e. either there are none, or the ones that are there are filtered out, either because of the fact that a default-page isn't shown, or because a btree folder doesn't list its children, or because all children are of types that are filtered out). If there are no children to show, the navtree is hidden.
Take a look at https://dev.plone.org/plone/ticket/6647#comment:5 Martin -- Acquisition is a jealous mistress _______________________________________________ Product-Developers mailing list [email protected] http://lists.plone.org/mailman/listinfo/product-developers
