disable themes in dropdown list, WebApp settings?
-
Hello, and I apologize if this is found in the forum somewhere… I have modified the ‘exampletheme’ with my own images and CSS. i’ve made it the default theme but would like to remove the other themes from the dropdown in the webapp settings. I can’t seem to find a way to do that.
I did try putting the list in config.php based on a suggestion on the Univention forum
// Define list of disabled plugins separated by semicolon define("DISABLED_PLUGINS_LIST", 'Basic;Dark;Lime;Orange');
but no change, they are all still available.
Is there a way to do this?
Thanks!
-
Hi @sgvfr
This is not possible via
DISABLED_PLUGINS_LIST
, because that option checks theplugin
folder defined inconfig.php
.
These core themes are located in another folder.You could create a plugin that is always enabled and hidden for a user
Which executescontainer.plugins = container.plugins.filter(function(p) {return p.info.name !== 'purple';});
when the plugin is initialized. It should look like this:initPlugin : function() { container.plugins = container.plugins.filter(function(p) {return p.info.name !== 'purple';}); }
You can copy most of the stuff from this plugin to get your started
https://github.com/gitsnuit/disable_leave_requester -
Bumping my old thread, hoping someone with more skill than I has found a way to remove the default themes, or can help with the plugin option. Now that UCS5 and Kopano is working I am working on setting up the webapp again.
I’ve been asked to set a single, default and non-configurable theme for all users.
Is this possible yet? I tried looking at the plugin option, but I don’t know nearly enough to code it myself.
Thanks!