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?


  • Kopano

    Hi @sgvfr

    This is not possible via DISABLED_PLUGINS_LIST , because that option checks the plugin folder defined in config.php.
    These core themes are located in another folder.

    You could create a plugin that is always enabled and hidden for a user
    Which executes container.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

Log in to reply