Skip to content

RvanDalen/Sc.Mvc.DisplayModeView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Easily add DisplayMode specific views for Sitecore MVC

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages