Try our conversational search powered by Generative AI!

Support Razor views in Shell Modules

Fixed in

EPiServer.CMS.UI 10.10.0

(Or a related package)

Created

Sep 21, 2015

Updated

Jan 07, 2022

Area

CMS Core

State

Closed, Fixed and tested


Description

Shell modules have traditionally only supported WebForm views per default. As Razor views are now the default choice, we should make it easier to use Razor views by allowing Module developers to select which View Engine to use for their module.

To select a view engine, change the 'viewEngine' attribute in the module.config to 'Razor'. Standard Razor configuration in web.config is still required.

In addition, it should be possible to opt out of any view engine registration by setting the module configuration to 'None'.