Extend Search control

Posted by Community Admin on 04-Aug-2018 20:42

Extend Search control

All Replies

Posted by Community Admin on 08-May-2011 00:00

Hello,

I can not find the possibility to add more elements (fields/listboxes) to the existing search control. I'm building a website which has Cooking Recipes.

- The recipes are news items.
- These items are shown in the newslist.
- Each item has tags like: 1) 4 persons, 2) 30 minutes, 3) dessert.
- It is currently possible to search within these news items with 1 searchbox
- I want to have 3 selectboxes (for example: 1) number of persons, 2) minutes, 3) type of dish) with each containing the values (tags) of all recipes (news items).
- Under these 3 selectboxes there is the search button.
- After clicking on this button I want to see the newslist being filtered after a page refresh.

If someone can solve this, I'll be very grateful!...

Posted by Community Admin on 11-May-2011 00:00

Hello Kamal,

You can expose your search criteria as a custom dynamic fields. Then you can build a custom widget that will look into these fields and return the proper result.

Please take a look at


Regards,
Ivan Dimitrov
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 12-May-2011 00:00

Hello Ivan,

Thank you for your reply. Do you perhaps have a sample?

Thank you.

Posted by Community Admin on 13-May-2011 00:00

Hello Kamal,

I do not have a sample for this specific requirement. It requires custom development.

Greetings,
Ivan Dimitrov
the Telerik team

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 13-May-2011 00:00

Dear Ivan

Maybe as a feature request the search could be extended to have mulitple indexes searched on some Dropdownbox settings (for starters)

So one could create an search index for all pages under starting node help (if that works) and one for the whole site for example. This would enable the user quickly search help or rest of site.

Markus

Posted by Community Admin on 13-May-2011 00:00

Hi Markus,

I logged your feature request for further implementations. 

Kind regards,
Ivan Dimitrov
the Telerik team

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 13-May-2011 00:00

Hello Ivan

I have an other solution.

In the news section I have created 3 custom fields  which needs to be indexed.

And I have created 3 static selectboxes (values corresponding to the custom fields). in the search template, The value of from each selected item will be combined and filled in the search textbox above the search button.  For example, the value of the search textbox will be filled in with "mega tower 1978".

When this text is filled in the "Content" it works, but for some reason when using the 3 custom fields it doesn't find anything.

Thanks,Kamal

Posted by Community Admin on 16-May-2011 00:00

Hello ,

Below are the fields that are included in the pipe

  • ID
  • Title
  • Content
  • Summary
  • ContentOwnerFirstName
  • ContentOwnerLastName
  • ContentOwnerEmail
  • PublicationDate
  • ContentCategories
  • ContentExpirationDate
  • ContentParentItemId
  • ContentLink
  • PipeId
  • ContentType
  • ItemHash
  • OriginalItemId
                         
                                   
              

Kind regards,
Ivan Dimitrov
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed