Sean Radford a écrit :
> Hi,
> 
> I know how to create new themes and make a new default theme, but how 
> can I disable / hide themes so that users cannot select them from the 
> theme tab and/or remove them from the theme editor?
> 
> Can't find any helpful extension points on ThemeService, etc. Maybe I 
> have to create a component to go and remove any unwanted ones? Any help 
> much appreciated.

In your custom project, you should contribute to the actions extension point an
action with the same id as the action used to define the theming tab (i.e.
id="TAB_THEME" in that case) with an attribute enabled="false".

Most tabs are defined by actions in this contribution:

  http://doc.nuxeo.org/5.1/components/org.nuxeo.ecm.platform.actions.html

-- 
Olivier

_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm

Reply via email to