[Zope-CMF] Newbie question CMF Document

Jon Edwards jon@pcgs.freeserve.co.uk
Wed, 8 Aug 2001 15:32:20 +0100


> Sorry I should have been more specific. Here's the
> code, it is a modification of recent_news dtml method,
> with a little modification. Everything else about the
> Document like title, description prints out fine.

<code snipped>

Aha! Yes, you were right, it's cos you are cycling through the results found
in the catalog, and the catalog doesn't store the CookedBody element for
documents.

You need something like (untested) -

<dtml-var "_.getobject('sequence-item').CookedBody">

But I can't find the correct syntax for searchresults... can anyone else
help?

Cheers, Jon