[Zope-CMF] using the subject property

Tres Seaver tseaver@digicool.com
Fri, 30 Mar 2001 07:26:46 -0500


> Ben Riga wrote:
> 
> This Zope/CMF stuff is very cool.  Every day I find something
> interesting that moves me farther along to what I'm trying to build.

Great!

> I'm trying to build a site that will allow me to group various
> related objects together.  I have a bunch of documents, files,
> links and so on and have entered keywords in the subject property
> of their meta-data.  Some objects have multiple keywords.  Is
> this the right way to try and solve this problem?

Yes, you are using the 'Subject' field appropriately.

> Where is there any documentation or an example that will help me to:
>
> How can I build a list of all the subjects that have been used?

Ask the catalog:

  <dtml-in expr="portal_catalog.uniqueValuesFor( 'Subject' )" >

> How do I now query for all the objects that are related to a subject?

Use a Topic, with a criterion against the 'Subject' field.

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