[Zope-CMF] concrete example of using path in portal_catalog search?
Mark McEahern
mark@mceahern.com
Tue, 29 Oct 2002 09:03:54 -0600
Does anyone have a concrete example of restricting a portal_catalog search
to a specific path? I.e., how do I modify the following to display
published News Items from folder /x/y/z?
<div tal:define="results python:here.portal_catalog(
portal_type='News Item',
sort_on='Date',
sort_order='reverse',
review_state='published')">
<div tal:repeat="obj results">
... do something with obj
</div>
</div>
Related question: Does the above "honor" the expiration date and do not
publish until dates--or do I have to be explicit about that? Admittedly,
this question seems easy to test.
Thanks,
// mark
-