Zimlets Configuration File WP

{{Archive}The config_template.xml file specifies a template for Zimlet configuration. There are two sections to this file: a section for global configuration, and a section for per host configuration.

The configuration properties maybe accessed within the Zimlet definition file as follows:

<zimletConfig name=”com_acme_Maps” version=”1.0”>
     <property name=”defaultToGoogle”></property>
   <host name=””>
     <property name=”googleApi”></property>
     <property name=”geocodeUser”></property>
     <property name=”geocodePass”></property>

The properties defined in config_template.xml may be accessed within the Zimlet definition file as follows:

  • ${config.global.propertyName} - Accesses a global property. For example, the global property defaultToGoogle

would be accessed as: ${config.global.defaultToGoogle}

  • ${config.host.propertyName} - Access a host specific property. For example, the host property googleApi would be accessed by ${config.host.googleApi}

Configuration properties are also available to Zimlet JavaScript code via Zimlet classes method getConfigProperty.

Verified Against: Date Created: 7/16/2009
Article ID: https://wiki.zimbra.com/index.php?title=Zimlets_Configuration_File_WP Date Modified: 2015-03-24

Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »

Jump to: navigation, search