Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Smart Search Filters and Attachments View modes: 
User avatar
Member
Member
Nicola - 11/23/2010 4:46:39 PM
   
Smart Search Filters and Attachments
I have a smart search webpart that searches attachments set up on a page along with two smart search filters.

The filters work correctly for pages but they don't seem to affect attachments. Is there a way to set this up or at least pass through the filter values to the attachment search WHERE clause so I can update the attachment search query?

Thanks.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 11/24/2010 3:29:19 AM
   
RE:Smart Search Filters and Attachments
Hi,

Regrettably, filter is not affecting the attachments. The only way how to achieve this right now would be to add some query string parameters to the URL (which is done by the filter) and which will indicate the attachments search and you will be able to compose the WHERE condition using query string macros.

We are sorry for this inconvenience.

Best regards,
Juraj Ondrus

User avatar
Member
Member
Nicola - 11/25/2010 3:01:50 PM
   
RE:Smart Search Filters and Attachments
Hi,

Thanks for the information. We are using drop down menu filters and the querystring parameter for the filter only provides the selected item index not the selected item value.

?searchtext=icon&searchmode=anyword&mediatype=1;&producttype=2;

Is there a way to get the value?

Thanks,
Nicola.


User avatar
Kentico Support
Kentico Support
kentico_jurajo - 11/26/2010 2:49:00 AM
   
RE:Smart Search Filters and Attachments
Hi,

You will need to use custom macro in the where condition, where you will read the numeric value from the query string parameter (index) and in the code of the custom macro, in some SWITCH or IF statement you will convert this value to logic value which will fit the WHERE condition. I hope it makes sense.

Best regards,
Juraj Ondrus