Make a search and returns all Events from the current folder and subfolder
by
Wyden Silvan
—
last modified
03.11.2009 16:02
from Products.CMFCore.utils import getToolByName
portal_catalog = getToolByName(context, 'portal_catalog')
return portal_catalog.searchResults(path = {'query' : '/'.join(context.getPhysicalPath()), 'depth' : 0}, Type = 'Event')
Whe you make it without the 'path' Attribut it searches the whole Page!
