Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Smart Search Filter View modes: 
User avatar
Member
Member
Jevgenij.Nekrasov-expertasa - 5/4/2010 6:33:47 AM
   
Smart Search Filter
Hi,

I use Smart Search Filter webpart for filtering search results. The question is:
Is it possible to make such trick, I want to upgrade search filter criteria dynamically depending on the return search values.

For example, I return products only for two manufacturers and I want two add dynamically this manufacturers into filter criteria, is it possible? From index I return only manufacturer's ID, NOT manufacturer title?Then, I return a set of products with different prices,the minimum price and maximum price equals XX$, I want to update filter criteria and remove those price criteria, which is less than minimum price or more than maximum price?

Br,Jevgenij

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 5/18/2010 3:38:28 AM
   
RE:Smart Search Filter
Hello,

I am not sure how you specify the current manufacturers (search word?). However, you can pass the parameters e.g. by query string.

Then you can for example create a custom macro (documentation) which will return the string for Search filter’s Values according to current query strings. If you cause a postback it will update the Smart search filter. You can use the custom macro in Values property of Smart search filter which defines the filter criteria.

If you need a manufacturer’s name (not the ID) you can use API to know it. The API Reference is here: API Reference.


Best regards,
Helena Grulichova