So we have upgraded a site to version 11.2 episerver cms and running into a problem in regards to the template coordinator. It appears to be ignoring the display option tag and just falling back to the default=true value by default(of course right?). This is all fine but appears to be ignoring my display options. This was working before the upgrade so not sure what has changed in the decision algorithm to determine template model-> and views but curious if anyone has ran into this and what their solution was. Attached is the template coordinator code.
[ServiceConfiguration(typeof(IViewTemplateModelRegistrator))] public class TemplateCoordinator : IViewTemplateModelRegistrator { public void Register(TemplateModelCollection viewTemplateModelRegistrator) { viewTemplateModelRegistrator.RegisterBlock<CTABlock>("IconBulletBlock", false, new[] { GlobalSettings.DisplayOptions.CTAIconBullet }); } } public static class TemplateCoordinatorExtensions { public static void RegisterBlock<T>(this TemplateModelCollection viewTemplateModelRegistrator, string viewName, bool availableWithoutTag, params string[] tags) { viewTemplateModelRegistrator.Add(typeof(T), new TemplateModel { Name = viewName, Inherit = true, AvailableWithoutTag = availableWithoutTag, Path = TemplateCoordinator.BlockPartialPath(viewName + ".cshtml"), Tags = tags }); } }