Easily add DisplayMode specific views for Sitecore MVC
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Depends/Sitecore
Src
.gitignore
README.md
Sc.Commons.DisplayModeView.sln

README.md

Sc.Mvc.DisplayModeView

Easily add DisplayMOde specific views for Sitecore MVC

With this solution the implementation is rather simple. If there is a specific DisplayMode view available and we are in Edit or Preview mode, then that view is preferred. If it’s not available then the application reverts to the default.

To create an Edit specific view you copy the current and add ".Edit" to the name.

  • SomeRendering.cshtml (default)
  • SomeRendering.Edit.cshtml (used only in Edit mode)
  • SomeRendering.Preview.cshtml (used only in Preview mode)

This solution works for ControllerRenderings and ViewRenderings.