Results 1 to 9 of 9

Thread: to remove some settings from Preferences page?

  1. #1
    tiger2000 is offline Elite Member
    Join Date
    May 2008
    Location
    Taiwan
    Posts
    296
    Rep Power
    6

    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?

  2. #2
    tdesorbaix is offline Zimlet Guru & Moderator
    Join Date
    Apr 2007
    Location
    Paris, France
    Posts
    365
    Rep Power
    8

    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.

  3. #3
    tiger2000 is offline Elite Member
    Join Date
    May 2008
    Location
    Taiwan
    Posts
    296
    Rep Power
    6

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

  4. #4
    tdesorbaix is offline Zimlet Guru & Moderator
    Join Date
    Apr 2007
    Location
    Paris, France
    Posts
    365
    Rep Power
    8

    Default

    Did you integrated the template in the skins like I told you? and redeployed the skins?

  5. #5
    tiger2000 is offline Elite Member
    Join Date
    May 2008
    Location
    Taiwan
    Posts
    296
    Rep Power
    6

    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.

  6. #6
    tdesorbaix is offline Zimlet Guru & Moderator
    Join Date
    Apr 2007
    Location
    Paris, France
    Posts
    365
    Rep Power
    8

    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.

  7. #7
    tiger2000 is offline Elite Member
    Join Date
    May 2008
    Location
    Taiwan
    Posts
    296
    Rep Power
    6

    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.

  8. #8
    tdesorbaix is offline Zimlet Guru & Moderator
    Join Date
    Apr 2007
    Location
    Paris, France
    Posts
    365
    Rep Power
    8

    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.

  9. #9
    tiger2000 is offline Elite Member
    Join Date
    May 2008
    Location
    Taiwan
    Posts
    296
    Rep Power
    6

    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] settings preferences for all users
    By viaris in forum Administrators
    Replies: 2
    Last Post: 06-23-2009, 03:43 PM
  2. [SOLVED] User Preferences Page
    By jr.adj in forum Administrators
    Replies: 2
    Last Post: 07-21-2008, 04:26 AM
  3. Replies: 1
    Last Post: 06-05-2008, 12:03 PM
  4. [SOLVED] Edit Button in Documents Gray After Upgrade
    By weathertation in forum Administrators
    Replies: 10
    Last Post: 05-14-2008, 12:47 PM
  5. Remove URL from page title
    By cmilfo in forum Administrators
    Replies: 4
    Last Post: 05-25-2007, 07:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •