TemplateCoordinator: Cannot register multiple partial views for model type

  • Updated

This article describes an issue with registering multiple views for a model type.

Step to reproduce

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();
var templates = r.List(typeof(SitePageData)); 

This issue has been identified in CMS-9294 and resolved in EPiServer.CMS.Core 11.3.0.  Please update your packages to get the fix.