I'm brand new to Orchard and to MVC 3, so naturally I've got an issue I can't quite figure out. I've overriden the Search.SearchForm widget in my theme, and have made it look and behave exactly like I want it to look. I can add the widget via the Admin site
to a zone, and everything is fine. It looks like it should and behaves like it should.
What I really want to do though, is embed the search form in a specific spot directly in my Layout.cshtml file without having to "enable" it via the Admin site. I know that to make it work, search indexing and Lucene have to be enabled, but assuming
that's done, how do I (or can I), in my Layout.cshtml, embed the Search.SearchForm widget as if it were a partial view?
Basically, the code in the Layout.cshtml file is:
<div id="status" class="inherit-bg">
<li><a href=".">Bike Shop</a></li>
CODE TO EMBED WIDGET WOULD BE HERE
Can someone provide some guidance for what seems to be a fairly simple problem? Assuming it's straightforward, I'm just not sure if my problem is with my knowledge of Orchard and its implementation of widgets or if it's due to my lack of knowledge of MVC
3 and using .cshtml files.