[Zope] Re: problems with news item properties

Chris Withers chrisw at nipltd.com
Fri Aug 29 15:55:35 EDT 2003


martin f krafft wrote:
> also sprach Chris Withers <chrisw at nipltd.com> [2003.08.28.1134 +0200]:
> 
>>Why do you look in the REQUEST for something called 'news' first?
> 
> I don't know, Plone does it that way.

Interesting ;-)

If you change your code to the following, what gets output:

<metal:block define-macro="box"
     tal:define="results python:request.get('news',
       here.portal_catalog.searchResults( ... ));:>

         <tal:block repeat="obj results">

           <span tal:replace="obj/getPath" /><br>
           <span tal:replace="obj/meta_type" /><br>
           <span tal:replace="obj/portal_type" /><br><br>

         </tal:block>

   </metal:block>

cheers,

Chris




More information about the Zope mailing list