Sitecore 6.5 with MVC3

I need to use Sitecore 6.5 with the MVC framework, and according to the reference document, I can configure Sitecore and do it. I created the MVC3.NET web application project (space and using Razor) and I know the following things for sure.

  • How to customize layouts and sublayouts? (this should be different than the web form, I think)
  • What do I need to do to use Sitecore data controls, for example. FieldRenderer, Text, etc. (I think that without these controls it will not be easy for us to use the page editing mode)
  • How to use Sitecore repositories in MVC?

I used this document as a reference.

+6
source share
3 answers

Currently, Sitecore MVC support is configured so that ASP.NET MVC can work with the installation of Sitecore under the same host name.

Full support for using MVC with Sitecore will be included in update 6.5.1 during June. At this point, everything you mentioned, plus other things, such as populating the viewbag with contextual data, will be possible.

There are ways to achieve certain parts of this integration, such as a common source module that allows the use of razors . I personally wrote a small module that allows you to use MVC routes with sitecore elements ( Sitecore MVC Routing ), but for full MVC support you will have to wait until June.

+6
source

Someone made a proof of concept of what you want.

This blog explains everything: http://www.chrisvandesteeg.nl/2012/02/26/sitecore-mvc/

+1
source

None of these features are currently available in MVC. Sitecore allows you to use them side by side, as well as make some calls at the Sitecore data level, etc., but the level of integration that you (and I) are looking for has not yet been released. Presumably coming soon.

0
source

Source: https://habr.com/ru/post/912394/


All Articles