问题
Honestly I don't know how this could be done (if it's possible). I'm not seeking for a development solution, i'm seeking for a solution with a plone ootb (or a plugin).
For ex. is it possible to add a criterion that excludes all contents with a specific word in the title field from results?
or is it possible to add a path criterion that excludes all content in a specific path from results?
回答1:
Doing NOT
queries is not supported by ZCatalog OOTB but it can be done with AdvancedQuery. There are not add-ons that I know of that incorporate this functionality into collections for you. IOW, this would be a development task.
来源:https://stackoverflow.com/questions/7340239/how-can-i-invert-a-criterion-in-a-collection