How do I access the Rendering Parameters in an mvc view that uses the SearchModel model?
I want to do what is described here, in an mvc view. I cannot find a way to do so w/o creating a new model template that inherits the SearchModel and using that.
When using MVC, you can access the list of parameters like this:
Unfortunately, I just noticed that the additional parameters are not parsed as they should. Using the code sample above returns all additional parameters as a single string. I will open an issue to fix it.
To work around this issue, you can use this Sitecore method that will help you parse the additional parameters:
Here is a code sample that should do what you want:
Hope this helps