Change default to week

Follow

Comments

4 comments

  • Avatar
    Zetya Support

    Hi Les,

    Follow these steps to change the default view for the calendar:

    1. Open the Calendar template
    2. Find the line that starts with 'timeFormat'. It will look like this:

      timeFormat: 'hh:mm tt',

    3. Add the following line immediately after the timeFormat line

      defaultView: 'agendaWeek',

    4. Save the template

    Thanks, Gavin. 

  • Avatar
    Les Pardew

    Hi Gavin,

    The only line that had timeFormat was this one.

    timeFormat: 'h(:mm)t',

    I added the line you suggested below it and nothing changed? It still was set as month view. 

     

  • Avatar
    Zetya Support

    Hi Les,

    There was some other code in there already for setting the default view. I must have added that previously. Anyways, I've gone ahead and updated your template.

    Thanks, Gavin.

  • Avatar
    Les Pardew

    Thanks

Please sign in to leave a comment.