A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
Not sure this is possible. As currently `IUIDescriptorInitializer` is requesting a typeof() page to change icons for. Sample:
[ServiceConfiguration(typeof(IUIDescriptorInitializer))]
public class ContainerPageUIDescriptorInitializer : IUIDescriptorInitializer
{
public void Initialize(UIDescriptorRegistry registry)
{
var containerTypes = TypeAttributeHelper.GetTypesChildOf<IContainerPage>();
foreach (var type in containerTypes)
{
registry.Add(new UIDescriptor(type)
{
DefaultView = CmsViewNames.AllPropertiesView,
IconClass = ContentTypeCssClassNames.Container
});
}
}
}
Implemented the class above and the TypeAttributeHelper found here (http://tech-fellow.net/2014/01/31/add-support-container-pages-episerver-7-5/) but the Initialize function in class ContainerPageUIDescriptorInitializer does not get called. Do I need to register this in some way?
In my case I only need a container icon for pages using IContainerPage.
HI Magnus,
I've notice issue that there are cases when Initialize method is called and cases when it's not. Try restart app pool and try again. I'm not sure where the actual problem is (I bet maybe in EPiServer type scanner).
Hi!
Our editors are requesting an icon similar to the one in epi 6 that indicates which page is new when you've copied a page.
/Peter