After following this guide to set tree icons I really like how I can just add an interface to a content type to set the icon.
So with this class I can just add the IUseSettingsTreeIcon to any content type.
[UIDescriptorRegistration]
public class SettingsTreeIconDescriptor : UIDescriptor
{
public SettingsTreeIconDescriptor()
{
IconClass = DefaultContentIcons.ActionIcons.Settings;
}
}
public interface IUseSettingsTreeIcon
{
}
I also liked this trick to force all properties view and it would be nice if I could just add this interface to the content types where I want this behaviour.
[UIDescriptorRegistration]
public class AllPropertiesViewDescriptor : UIDescriptor
{
public AllPropertiesViewDescriptor() : base("dijitIcon")
{
// Make form editing the default for this content type
DefaultView = CmsViewNames.AllPropertiesView;
}
}
public interface IUseAllProperitesView
{
}
Is there a good way to achive this without having to define an own UIDescriptorRegistration for every different content type?
After following this guide to set tree icons I really like how I can just add an interface to a content type to set the icon.
So with this class I can just add the IUseSettingsTreeIcon to any content type.
I also liked this trick to force all properties view and it would be nice if I could just add this interface to the content types where I want this behaviour.
Is there a good way to achive this without having to define an own UIDescriptorRegistration for every different content type?