Search Mode Selector doesn't work when I change the mode

Duncan Koza asked on March 11, 2022 21:17

Hello,

I am using Kentico 11.

I have been using the Smart search dialog with results web part for a while now and it has been working well. It just came to my attention that the Search mode selector doesn't work. I have my default Search mode set to "Any word" and selected the option to "Show search mode".

https://website.com/search?searchtext=hello+world&searchmode=anyword

But when a user selects a search mode, the search mode is always blank as you can see below.

https://website.com/search?searchtext=Hello+world&searchmode=

Am I missing a setting somewhere? How can I pass that variable?

Thank you,

Duncan

Correct Answer

Juraj Ondrus answered on March 12, 2022 10:05

Isn't it possible that in the search results web part, in the 'Performance' section is the 'Disable viewstate' property enabled (checked)? (sample screenshot) This could cause that the control does not use viewstate - which is required to change the state of the control.

If not, check the same setting for the web part zone, this time in the 'Default' section (screen shot). And if it is not on that template used by the page, check the master page template and the same setting in the page placeholder web part. (screen shot)

1 votesVote for this answer Unmark Correct answer

Recent Answers


Duncan Koza answered on March 14, 2022 16:19

Thank you so much!

I had the disabled viewstate enabled on the web part, zones and placeholders. Plus, I am using nested templates so I had to follow the chain up.

Thank you. It is now fixed.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.