Another solution - although I haven't tried this yet - before searching nature, get the category and look in the stkeywords prop for any key that has an OID key. That represents a sub category. Do a get on those guys and repeat. When done, you should have a list of every subcat. Then just pass the original cat ID and that list to the find tag.
Actually, it would be easier, and quicker, to just get the hierarchy and use that to build you list of subcats. Hmmm, I think I'll build a custom tag for this today. ;)
======================================================================= Raymond Camden, Principal Spectra Compliance Engineer for Allaire
Email : jedimaster@allaire.com ICQ UIN : 3679482
"My ally is the Force, and a powerful ally it is." - Yoda
> -----Original Message----- > From: Michiel Boland [mailto:boland@carmel.diva.nl] > Sent: Thursday, December 28, 2000 8:09 AM > To: Spectra-Talk > Subject: Re: cfa_metadataKeywordObjectFind in categories > > > On Thu, 28 Dec 2000, Johan Coens wrote: > > > I want to retrieve objects from a metadatahierarchy, but only from a > > specific tree in the hierarchy. FE. If I have: > > books > > - nature > > - trees > > KEYWORD1 (assigned) > > KEYWORD2 > > - flowers > > KEYWORD3 > > KEYWORD4 (assigned) > > - science > > - physics > > > > I want to search only in the category nature, so I provide the > lCategoryID > > from the category 'nature'. But, I don't get the objects assigned to > > KEYWORD1 and KEYWORD4. I have to specify the categoryIDs from > 'trees' and > > 'flowers' first if I want to get all the objects related to > this keyword. > > You could assign extra keywords to the objects so that they are returned > in a category search. So for example, rather than just assigning keyword > "KEYWORD1" in category trees, also assign keyword "trees" in category > "nature". > > -- > Michiel Boland <boland@diva.nl> > Digital Valley Internet Professionals > Plantsoen 17, Wageningen, The Netherlands > Phone: +31 317 465555, Fax: +31 317 460276 > > > ~~~~~~~~~~~~~ Paid Sponsorship ~~~~~~~~~~~~~ Get Your Own Dedicated Win2K Server! Instant Activation for $99/month w/Free Setup from SoloServer PIII600 / 128 MB RAM / 20 GB HD / 24/7/365 Tech Support Visit SoloServer, https://secure.irides.com/clientsetup.cfm. ------------------------------------------------------------------------------ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a message to spectra-talk-request@houseoffusion.com with 'unsubscribe' in the body.