Icon indicating which is the new page when copying in epi7

Vote:
 

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

#83269
Mar 28, 2014 11:06
Vote:
 

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
                         });
        }
    }
}

    

#83631
Mar 28, 2014 21:45
Vote:
 

Ah ok, too bad.

Thanks for letting me know though!

/Peter

#83649
Mar 30, 2014 16:00
Vote:
 

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?

#85113
Apr 15, 2014 16:02
Vote:
 

In my case I only need a container icon for pages using IContainerPage.

#85114
Apr 15, 2014 16:03
Vote:
 

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).

#85118
Apr 15, 2014 16:40
This thread is locked and should be used for reference only.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.