[Zope-CMF] Newbie question CMF Document
Jeffrey P Shell
jeffrey@zope.com
Wed, 8 Aug 2001 10:14:25 -0400
On Wednesday, August 8, 2001, at 08:26 AM, shivprasad anantram wrote:
> I am using portal_catalog.searchResults to fetch the
> list of documents, could that be the problem.
> TIA
> Shiv
The objects returned from a catalog search are Catalog Record
objects, with schema defined by what is indexed. You can get to
the real object pretty easily in Zope (there's a howto on some of
this at zope.org[1]).
<dtml-in expr="portal_catalog(Type='Document')">
<dtml-with name="getObject"> [2]
<dtml-var name="CookedBody">
</dtml-with>
</dtml-in>
[1] http://www.zope.org/Members/Caseman/ZCatalog_for_2.3
[2] longhand for the common shortcut <dtml-with getObject> (no quotes)