Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Zimlets

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-29-2008, 05:43 AM
New Member
 
Posts: 3
Default [SOLVED] config_template.xml troubles in 5.0.6

I have modified com_zimbra_asterisk a bit and I am trying to access variables I have defined in the config_template.xml file. I read the zimlet developer guide, but the methods described didn't work. My template file looks like this:

<zimletConfig name="com_zimbra_asterisk" version="1.0">
<global>
<property name="cgiurl">http://10.1.1.8/cgi-bin/zimbradial.cgi</property>
<property name="pcddheader">Choose number</property>
<property name="debug">true</property>
</global>
</zimletConfig>

At the moment, I have manually entered the information into the asterisk.js file, but I would like to be able to update it by only modifying the config_template.xml file. The methods I have tried:

this.getConfig("cgiurl");
this.getConfigParameter("global.cgiurl");
this.getConfigParameter("cgiurl");

I am sure there's something really stupid that I am doing wrong, unfortunately I don't have much experience with javascript and there doesn't seem to be much 5.0.6 specific documentation yet.

Any help is appreciated!
Reply With Quote
  #2 (permalink)  
Old 06-29-2008, 07:57 PM
New Member
 
Posts: 3
Default

I guess I didn't reload the page after I changed it to:
this.getConfig("cgiurl")

I just tried that again and it worked. That's what I get for messing with this stuff at 4AM after being awake for 20 hours!


--------
update:
You have to run 'zmzimletctl configure config_template.xml' and then restart zimbra for it to update, just editing the config_template.xml in the jetty directory is no good! ahhhh!

Last edited by bfield; 06-29-2008 at 08:24 PM..
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.