[Zope-CMF] Getting Attributes From A Property Sheet

Tres Seaver tseaver@palladion.com
Wed, 06 Jun 2001 20:29:55 -0400


ken bolton wrote:

> Hi all,
> 
> My experiments and dabblings with the CMF are going extremely well, having
> great success developing Products and ZClasses. I'm having an issue, though,
> and I hope that someone on the list can help me resolve it. I've looked
> through the archives and documentation and can't find the solution.
> 
> So the situation is I've got a <dtml-in "objectItems('Food Item')"> which
> allows me to put the attributes from the FoodProperties property sheet in my
> page, and iterates through all Food Items in the folder. I was stoked when I
> got that working. Now, I want to create a view of all Food Items throughout
> the site and return their attributes. I hacked away at the news_box to and
> created a food_box. It returns my Food Items, but this will only display the
> objects' metadata.
> 
> Two questions -
> Why do searchResults come back sans propertysheet attributes?
> What is the code I'm missing for getting those propertysheet attributes to
> display in my portal_catalog searches?


  http://www.zope.org/Members/Zen/howto/AdvZCatalogSearching

Tres.
--
===============================================================
Tres Seaver                                tseaver@digicool.com
Digital Creations     "Zope Dealers"       http://www.zope.org