Navigation

    Kopano
    • Register
    • Login
    • Search
    • Categories
    • Get Official Kopano Support
    • Recent
    Statement regarding the closure of the Kopano community forum and the end of the community edition

    disable themes in dropdown list, WebApp settings?

    Kopano WebApp
    2
    3
    416
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • sgvfr
      sgvfr last edited by

      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!

      1 Reply Last reply Reply Quote 0
      • marty
        marty Kopano (Inactive) last edited by

        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
        https://github.com/gitsnuit/disable_leave_requester

        https://documentation.kopano.io/deskapp_admin_manual
        http://documentation.kopano.io/webapp_smime_manual
        https://documentation.kopano.io/webapp_admin_manual

        sgvfr 1 Reply Last reply Reply Quote 0
        • sgvfr
          sgvfr @marty last edited by

          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!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post