CGCalendar is very lovely for displaying events in different ways on your website. The default granularity when you add/edit events is every 15 mintes: so 00, 15, 30, 45 minutes past the hour. The time is entered as a dropdown box.
What if you have an event that starts at 15:10? You then need to change the time dropdown box to show every 5 minutes: so 00, 05, 10, 15, 20....through to 55.
Here's how. (See the Customizing Admin templates page of the docs area for the general method.)
Create a new directory assets/module_custom/CGCalendar/templates/
Copy the 3 files admin_add_event.tpl, orig_editevent_template.tpl, settings.tpl from modules/CGCalendar/templates/ across to your new directory.
Open assets/module_custom/CGCalendar/templates/admin_add_event.tpl
Search for "interval=" and around line 105 you will see
Code: Select all
<span id="starttime"{if $event.all_day_event == 1} style="display: none;"{/if}> @ {html_select_time use_24_hours=$use24 prefix=$tmp time=$event.event_date_start_ut minute_interval=15 display_seconds=false}</span>
Search for "interval=" and around line 117 you will see
Code: Select all
{html_select_date prefix=$tmp time=$event.event_date_end_ut start_year=$start_year end_year=$end_year}<span id="endtime"{if $event.all_day_event == 1} style="display: none;"{/if}><br/>@ {html_select_time use_24_hours=$use24 time=$event.event_date_end_ut prefix=$tmp minute_interval=15 display_seconds=false}</span>
Open assets/module_custom/CGCalendar/templates/orig_editevent_template.tpl
Search for "interval=" and around line 47 you will see
Code: Select all
<span id="starttime"{if $event.all_day_event == 1} style="display: none;"{/if}> at {html_select_time use_24_hours=$use24 prefix=$tmp time=$event.event_date_start_ut minute_interval=15 display_seconds=false}</span>
Search for "interval=" and around line 58 you will see
Code: Select all
<span id="endtime"{if $event.all_day_event == 1} style="display: none;"{/if}> at {html_select_time use_24_hours=$use24 time=$event.event_date_end_ut prefix=$tmp minute_interval=15 display_seconds=false}</span>
Open assets/module_custom/CGCalendar/templates/settings.tpl
Search for "interval=" and around line 108 you will see
Code: Select all
{html_select_time prefix=$tmp display_seconds=false time=$dflt_starttime minute_interval=15}
And you're done