10-16-04 02:13 AM
As Angus implied... makes a diff if you're MCMS 2001/2002.
If I understand your question, you want to be able to search for multiple
custom properties in all your channels at once.
Assuming you're 2002, there's no way to search for multiple custom props in
the API. What you could do, is create some sort of a cache... how often are
your custom props changed? If not that often, you could build a routine
(like a WinService or a scheduled console app) that walked the entire
channel tree and recorded all the custom props and channel GUID to a list
(let's say a SQL 2000 table for the sake of argument). Then you can search
on multiple custom props at any time. And since you have the GUID of the
channel in the database, you can get a reference to it qucikly with
Searches.GetByGuid().
Granted, it's a one-off idea, but it's something I've done in the interest
of performance. What I did was once I the channels custom props were
created via Site Manager, I had a custom web app that allowed people to
modify the custom props outside the Site Manager. When the property was
changed, it also logged that new value in the corresponding record in the
database.
I'm having a issue where a common task that would normally run real time
needs to get a list of all channels that have specific custom property
values. I used the above method to "flatten" the channel instead of walking
the entire channel tree ever 5 minutes (since my channel structure or custom
props don't change very often).
-AC
"Barak" <barak_mery@yahoo.com> wrote in message
news:29bafab4.0410110440.413ec487@posting.google.com...
> Hi,
>
> Im using a mcms2000 and sps with the sps connector.
>
> I need to build a web application that hold for each posting some meta
> data
> like - language, country, department...etc.
> now What i want to do is to let the end user to filter the content by
> this parameters. for example the user click on the sport channell he
> will see all sport items that have the same meta data as the user
> prefrences.
>
> If i use custom properties to hold the meta data i can only perform a
> search on one custom property at a time and i cant manage a and/or
> operators between the parameters.
>
> If i use the sps search engine i can perform a search only on 3
> parameters and the results have the same look so if i want to display
> the title of the item/ image etc (for each template i want a different
> result page) its impossible (as far as i know), because i dont get a
> posting collection as a result.
>
> Is there any solution for that ?
>
> Thanks in advance
[ Post a follow-up to this message ]
|