Rick Hurst Web Developer in Bristol, UK

Menu

Example Portal Catalogue query – return most recent object of particular type


context.portal_catalog(Type='Note', path=thisObj, sort_on='Date', sort_order='Reverse')[:1]

This will return the most recent "Note" in a particular folder(ish object), defined by thisObj (to see how thisObj was created see previous post)