Results 1 to 6 of 6

Thread: Calendar Template Zimlet zc7

  1. #1
    Join Date
    Jun 2011
    Posts
    2
    Rep Power
    4

    Default Calendar Template Zimlet zc7

    i've installed the template zimlet on our server (Email Templates | Zimbra :: Gallery) but the calendar feature is not working, we are using zcs7, is this a know bug on zcs7? any fixes for it?

  2. #2
    Join Date
    Mar 2011
    Posts
    57
    Rep Power
    4

    Default

    I try to bump this tread...any news about calendar templates?

  3. #3
    Join Date
    Feb 2009
    Location
    Shawnigan Lake, BC, Canada
    Posts
    66
    Rep Power
    6

    Default

    Quote Originally Posted by cabrerarodrigo View Post
    i've installed the template zimlet on our server (Email Templates | Zimbra :: Gallery) but the calendar feature is not working, we are using zcs7, is this a know bug on zcs7? any fixes for it?
    Same here, 7.1.3 NE, no Template menu appears on New Calendar items. We'd really like this to work!

  4. #4
    Join Date
    Mar 2012
    Posts
    7
    Rep Power
    3

    Post Calendar Working

    Had the same problem, so I modified the javascript slightly. Just had to change the areas where it was referencing the "APPT". I have attached the altered code. Hopefully it works for everyone. (just delete the ".doc" at the end)
    Attached Files Attached Files

  5. #5
    Join Date
    Mar 2011
    Posts
    57
    Rep Power
    4

    Default

    Quote Originally Posted by cfoucehr View Post
    Had the same problem, so I modified the javascript slightly. Just had to change the areas where it was referencing the "APPT". I have attached the altered code. Hopefully it works for everyone. (just delete the ".doc" at the end)
    It works, thank you!

  6. #6
    Join Date
    Mar 2011
    Posts
    57
    Rep Power
    4

    Arrow

    Here is the solution I used until cfoucehr posted the fix for emailtemplates zimlet.
    I created a very simple zimlet (merging code from the 'Single and double clicked (via javascript)' example and this post) that on click creates an appointment with the details that are preset in the zimlet source code.
    It is a very hardcoded and dumb solution, but it works, and it can be useful if you for example olny need one or two appointment templates.

    It's composed by two files:

    com_zimbra_single_appointment_template.xml :
    Code:
    <zimlet name="com_zimbra_single_appointment_template" version="0.1" description="Creates a preset appointment on click">
        <include>com_zimbra_single_appointment_template.js</include>
        <handlerObject>com_zimbra_single_appointment_template_HandlerObject</handlerObject>
        <zimletPanelItem label="Create preset appointment">
            <toolTipText>Click to create a preset appointment</toolTipText>
        </zimletPanelItem>
    </zimlet>
    com_zimbra_single_appointment_template.js :
    Code:
    /**
     * Defines the Zimlet handler class.
     *   
     */
    function com_zimbra_single_appointment_template_HandlerObject() {
    }
    
    /**
     * Makes the Zimlet class a subclass of ZmZimletBase.
     *
     */
    com_zimbra_single_appointment_template_HandlerObject.prototype = new ZmZimletBase();
    com_zimbra_single_appointment_template_HandlerObject.prototype.constructor = com_zimbra_single_appointment_template_HandlerObject;
    
    /**
     * This method gets called by the Zimlet framework when single-click is performed.
     *  
     */
    com_zimbra_single_appointment_template_HandlerObject.prototype.singleClicked =
    function() {
        this.displayStatusMessage("Creating preset appointment...");
        var apptComposeController = AjxDispatcher.run("GetApptComposeController");
        if (apptComposeController) {
            var appt = new ZmAppt();
            
            /*Insert appointment details modifying these attributes*/
            
            appt.setName("Test");
            appt.setTextNotes("Insert notes here\r\n");
            appt.setStartDate("3/2/2007");
            appt.setEndDate("3/2/2007");
            appt.startDate.setHours(7,00);
            appt.endDate.setHours(8,00);
    
            apptComposeController.show(appt);
            }
        
    };

    Zip both of them in com_zimbra_single_appointment_template.zip and you can deploy the zimlet using admin console.

Similar Threads

  1. Replies: 6
    Last Post: 05-07-2012, 11:11 AM
  2. Replies: 21
    Last Post: 02-04-2010, 09:06 AM
  3. Outlook 2007 Beta error
    By bersrker in forum Zimbra Connector for Outlook
    Replies: 13
    Last Post: 07-17-2008, 07:38 AM
  4. Zimlet for Calendar?
    By New_way in forum Zimlets
    Replies: 2
    Last Post: 11-12-2007, 09:10 AM
  5. Post instsallation problems
    By Assaf in forum Installation
    Replies: 14
    Last Post: 01-29-2007, 10:38 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
  •