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

    WebApp own Theme

    Kopano WebApp
    3
    6
    1215
    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.
    • yythoss
      yythoss last edited by yythoss

      Hello Kopano Forum,

      I have make my own WepApp Theme and place it on:

      /usr/share/kopano-webapp/plugins/THEMENAME
      
      

      But when the user change the theme in the preferences in webapp and he want go back to my own theme, the theme is not listed.

      My own Theme is configured as default in the config.php.

       define("THEME", 'THEMENAME');
      
      1 Reply Last reply Reply Quote 0
      • madpatrick
        madpatrick last edited by

        Did you also changed the other files, like /usr/share/kopano-webapp/plugins/THEMENAME/jsTheme.js
        Also check the name, it is case sensitive

        yythoss 1 Reply Last reply Reply Quote 0
        • yythoss
          yythoss @madpatrick last edited by yythoss

          Yes, this is my jsTheme.js:

          // Create the namespace that will be used for this plugin
          Ext.namespace('Zarafa.plugins.SWT');
          
          /**
           * A theme plugin should extend {@link Zarafa.core.ThemePlugin}. If it only changes the css
           * there is nothing to implement in this class.
           * @class Zarafa.plugins.themeexample.Theme
           * @extends Zarafa.core.ThemePlugin
           */
          Zarafa.plugins.SWT.Theme = Ext.extend(Zarafa.core.ThemePlugin, {});
          
          // Register the plugin with the container after the WebApp has loaded.
          Zarafa.onReady(function() {
              container.registerPlugin(new Zarafa.core.PluginMetaData({
          
                  // To avoid problems the name of a plugin should be exactly the same as the
                  // the name of the directory it is located in.
                  name : 'SWT',
          
                  // The displayName is what will be shown in the dropdown in which the user can pick a theme
                  displayName : _('SWT'),
          
                  // Do not allow the user to disable this plugin
                  allowUserDisable : true,
          
                  // Do not show this plugin in the plugin list
                  allowUserVisible : true,
          
                  pluginConstructor : Zarafa.plugins.SWT.Theme,
          
                  // The 'about' text will be shown in the About part of the settings
                  about : '<a target="_blank" href="http://www.swt-online.de">Background vector designed by SWT</a>'
              }));
          });
          
          
          1 Reply Last reply Reply Quote 0
          • Coffee_is_life
            Coffee_is_life last edited by

            hello @yythoss,

            is the manifest.xml present in the same dir?

            if not this is how it should look:

            <?xml version="1.0"?>
            <!DOCTYPE plugin SYSTEM "manifest.dtd">
            <plugin version="2">
                    <info>
                            <version>1.0</version>
                            <name>SWT</name>
                            <title>SWT</title>
                            <author>yythoss</author>
                            <authorURL>www.yythoss.com</authorURL>
                            <description>Theme for beeing fabolous and sparkel all the time</description>
                    </info>
                    <components>
                            <component>
                                    <files>
                                            <client>
                                                    <clientfile load="source">js/Theme.js</clientfile>
                                                    <clientfile load="debug">js/Theme.js</clientfile>
                                                    <clientfile load="release">js/Theme.js</clientfile>
                                            </client>
                                    </files>
                            </component>
                    </components>
            </plugin>
            
            

            note the path to your theme.js use your path/name

            regards

            coffee_is_life

            1 Reply Last reply Reply Quote 0
            • madpatrick
              madpatrick last edited by

              I’ve have made my theme adjustments at the “themeexample” theme and when that was working it changed the names in all the files until this was working.
              This has worked out for me…

              1 Reply Last reply Reply Quote 0
              • yythoss
                yythoss last edited by

                Yes, the manifest.xml was the problem.
                Now it works perfekt THX.

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