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

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 11-20-2009, 01:03 AM
Elite Member
 
Posts: 296
Default to remove some settings from Preferences page?

Dear All,

Is it possible to customize the display for settings of User's Preferences, like to remove Busy/Free setting from Webclient's Preferences > Calendar page?
Reply With Quote
  #2 (permalink)  
Old 11-20-2009, 05:12 AM
Zimlet Guru & Moderator
 
Posts: 288
Default

yes it is possible to remove the free-busy in the user preferences by modifying the template :
/opt/zimbra/jetty-6.1.5/webapps/zimbra/templates/prefs/Pages.template.js
The most simple way is to integrate the modified version of the template in the skins. See the skin yahoo for examples.
Reply With Quote
  #3 (permalink)  
Old 11-22-2009, 07:23 PM
Elite Member
 
Posts: 296
Default

Thanks for this message, and i did see there's some code for Busy/Free preferences, however, when I remove those codes, restart ZCS, it seems the busy/free preference is still there.

i suppose there're something needed to be done, something like to re-deploy the JS code?? any idea on this?

Thanks.


( i'm sorry but i don't nothing about Jetty. )
Reply With Quote
  #4 (permalink)  
Old 11-23-2009, 12:43 AM
Zimlet Guru & Moderator
 
Posts: 288
Default

Did you integrated the template in the skins like I told you? and redeployed the skins?
Reply With Quote
  #5 (permalink)  
Old 11-23-2009, 01:02 AM
Elite Member
 
Posts: 296
Default

i've tried two ways:

1. directly modify zimbra/templates/prefs/Pages.template.js , remove those section for Busy/Free preferences. Restart ZCS service, but it seems that i got same result as before, the Busy/Free preferences is still there.

2. i'm not sure if i'm correct or not for "integrate the template into the skins", but i tried to copy Page.template.js to skins/beach/templates/Page.templates.js and again i remove those section for Busy/Free preferences , and run "zmskindeploy beach" , restart ZCS service. it seems i still got same result. there's nothing changed in Busy/Free preference.

i'm sorry but did i do anything wrong?

thanks.
Reply With Quote
  #6 (permalink)  
Old 11-23-2009, 02:35 AM
Zimlet Guru & Moderator
 
Posts: 288
Default

1 - No, it will not work.

2 - You have to put the reference of the template in the file manifest.xml of the skin.
Reply With Quote
  #7 (permalink)  
Old 11-23-2009, 08:17 PM
Elite Member
 
Posts: 296
Question

hm.. still got some problem. this is what i've done:

1. goto skins/beach/ , edit manifest.xml , add these lines between <advance> </advanced> tags:

Code:
<templates>
<file>templates/Pages.template.js</file>
</templates>
2. copy jetty/webapps/zimbra/templates/prefs/Pages.template.js to jetty/webapps/zimbra/skins/beach/templates/ directory.

3. edit skins/beach/templates/Pages.template.js file and remove those lines for Busy/Free preferences.

4. goto jetty/webapps/zimbra/skins/ , run "zmskinsdeploy beach". Then run zmmailboxdctl restart.

any idea why it doesn't work? Thanks in advance.
Reply With Quote
  #8 (permalink)  
Old 11-24-2009, 12:55 AM
Zimlet Guru & Moderator
 
Posts: 288
Default

I think it should be :
Code:
<file>templates/Pages.template</file>
instead of :
Code:
<file>templates/Pages.template.js</file>
Look at the yahoo skin as an example.
You can just write the content of the "prefs.Pages#Calendar" template in Pages.template like it is done for an other template in the yahoo skin. Then you deploy the skin, and that will create the .js file automatically.
Reply With Quote
  #9 (permalink)  
Old 11-24-2009, 01:15 AM
Elite Member
 
Posts: 296
Default

thanks very much and it's just like what you said.

and now the problem is going to how to change the code for the template.

thanks.
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.