Sitecore: using MVC areas

Sitecore out of the box will not provide MVC ares support but you will really need this functionality for good solution organization. However, Sitecore has good pipelines system and you could plug you code that will resolve areas.

You need to apply area detection only to controllers renderings, as Controllers will require areas information in order to resolve views for example.



Besides the code above you need to make modifications to controller rendering and add fields Area and Namespace. Namespace be required when you add controllers with same names in different areas, as MVC will not be able to choose right one without Namspace.


No comments :

Post a Comment