[Zope-CMF] Relating different objects to each other

Ausum Studio ausum_studio@hotmail.com
Fri, 11 Oct 2002 16:43:53 -0500


Regarding your workaround, it could work provided your objects ids within
your site are unique, because it's exactly like performing a search by
subjects. If there are more subject keywords of the same name the catalog
will show unwanted results. You can relate objects just using skins.

Some of  us would like the relations being automatically generated by means
of special metadata and a dedicated portal tool. This issue is being
discussed, not singularly but as part of a whole, the metadata
implementations within the CMF. Look for previous messages for the big
picture.



Ausum



----- Original Message -----
From: "Phil Glaser" <StillSmallVoice@DirectvInternet.com>
To: "List Zope CMF List" <zope-cmf@zope.org>
Sent: Friday, October 11, 2002 3:04 PM
Subject: [Zope-CMF] Relating different objects to each other


> Hi,
>
> I am building a site where my client would like to have a "related items"
> feature. The idea would be that, for example, when you display a news
item,
> you would also display a list of other items, from the same or different
> object type, that are related to it. So for the news item, the related
item
> list might include a document, an event, a link, etc., that are
thematically
> associated with that object.
>
> Is there a way to do this out of the box with CMF?
>
> If not, the way I was thinking of approaching this is as follows: every
type
> that can be related in this way would have a list property that contains
the
> ids of items to which it is related. The search catalog would index this
> property. When you display the related items for an object, you would do a
> catalog search against the object's id in the related items list index.
When
> you create the relationship between one item and another, you are simply
> adding the item's id to the other item's list property.
>
> If this is a sound approach, I'm wondering if the cleanest way of
> implementing it would be to implement the list property, and any related
> methods, in the object hierarchy above the level of the different
> information types. Since the object hierarchy is not documented anywhere,
> I'm not sure where the most logical place to do this modification would
be,
> and welcome any suggestions.
>
> Or, a completely different approach.
>
> Many thanks!
>
>
>
> Philip Glaser
> Principal and Software Architect
> Sustainable Software Solutions, LLC
> StillSmallVoice@DirectvInternet.com
> www.sustainsoft.com
> 973-951-9522
>
>
>
> _______________________________________________
> Zope-CMF maillist  -  Zope-CMF@zope.org
> http://lists.zope.org/mailman/listinfo/zope-cmf
>
> See http://collector.zope.org/CMF for bug reports and feature requests
>