Overriding Search Form

Topics: Customizing Orchard, Troubleshooting, Writing themes
Mar 1, 2011 at 9:17 AM

I'm trying to create an override for the /Orchard.Search/Views/Parts/Search.SearchForm.cshtml view which contains the search form. To do it properly I understand I should override it from my own theme. I've managed to override the search results file by placing it in the /Themes/MyTheme/Views/Orchard.Search/Search/Index.cshtml and accordingly I thought I should place the search form Search.SearchForm.cshtml view in /Themes/MyTheme/Views/Orchard.Search/Parts/ folder, but it doesn't work.

Any ideas what I'm doing wrong?


Mar 1, 2011 at 3:42 PM

\Orchard.Search\ in the path is not required for parts...

\Themes\MyTheme\Views\Parts\Search.SearchForm.cshtml works for me