Try our conversational search powered by Generative AI!

Cannot register multiple partial views for model type

Found in

EPiServer.CMS.Core 11.1.0

Fixed in

EPiServer.CMS.Core 11.3.0

(Or a related package)

Created

Dec 14, 2017

Updated

Dec 15, 2017

Area

CMS Core

State

Closed, Fixed and tested


Description

Step to reproduce

  1. Register 2 partial views for the same model type (see TemplateCoordinator in Alloy).

Expected: Both templates are registered.
Actual: Only the first template is registered.

//Returns 4 templates in Alloy on 10.10.4 (includes both PagePartial and PagePartialWide)
//Returns 3 templates in Alloy on 11.1.0 (PagePartialWide missing)
var r = ServiceLocator.Current.GetInstance<ITemplateRepository>();
var templates = r.List(typeof(SitePageData));