Hi Olivier,

Unfortunately your suggestion does not solve my issue. This will only hide
the Theme tab completely. What I need is to  remove certain themes from the
drop-down in the list on the Theme tab and also remove the themes available
within the Theme Manager.

I have a partial solution. I have written Seam Component (Application Scope
and auto Startup) that unregisters the desired theme using
ThemeManager.unregisterTheme(...). This removes it from the drop-down in
the Theme tab, and also as removes it as a Tab in the the Theme Editor. BUT
it still appears in the list within the Manage Themes page of the Theme
Editor. Does anyone know if this is a defect, or is there something else I
need to make a call to?

(I'm using 5.1.5 by the way)

Thanks,

Sean


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

-- 
Dr. Sean Radford, MBBS, MSc
w: http://www.tacola.com
t: 07802 24 24 86

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

Reply via email to