Options for Sitecore instances using MVC?
Coveo for Sitecore's search interface components are ascx controls. Is there an interface component which could work with an MVC-enabled Sitecore instance?
Support for MVC was introduced in our May release of Coveo for Sitecore. In this release, we provide views and models for our standard components, i.e. the Search Interface, Sort and Facet components, along with interfaces for the models (IFacetModel, ISortModel, etc.)
The page List of Available Components on developers.coveo.com provides a bit more information about this subject.
I've done a lot of MVC work with the pre-May release of Coveo. One thing to keep in mind - because the interface is JS-based you can still accomplish a lot with MVC. My approach has been to use the controller to capture the values Coveo will be looking for:
- FieldNames in Coveo
… then pass them through to the view for the JS UI to consume. Coveo provides a lot of the methods you need like:
viewModel.CultureName = SitecoreRestUtil.GetCurrentCulture();
viewModel.IndexSourceName = SitecoreRestUtil.RetrieveIndexSourceName();
With some effort you can also embed custom MVC renderings alongside Coveo's default Layout/Sublayout.