Event Calendar - weekly view
81 posts by 2 authors in: Forums > CMS Builder
Last Post: Yesterday at 1:15am (RSS)
By Djulia - October 28
Could you please verify the output of
showme($events);
Can you also try limiting the number of events with limit = '1' or 2, 3, etc.?
// Load records from the 'events' table
list($events) = getRecords(array(
'tableName' => 'events',
'where' => $query,
'loadUploads' => true,
'allowSearch' => false,
'debugSql' => false,
'limit' => '1',
));
showme($events);
By MercerDesign - October 28
I've done this, not sure I've done it right with the showme($events) bit.
By Djulia - October 28
Thanks,
https://rodneys46.sg-host.com/calendar_view.php?month=10&year=2024&view=day
For this event, you have:
'start_date' => '2024-10-28 09:00:00',
'end_date' => '2024-10-28 00:00:00',
Can you try modifying the end_date to:
'end_date' => '2024-10-28 12:00:00',
By MercerDesign - October 28
You are amazing, thank you.
It turned out the end date didn't have a time in the editor screen. Thank you again for your quick help.
By Djulia - October 28 - edited: October 28
You may also need to adjust the working hours.
// Define working hours as variables
$workingStartTime = '06:00';
$workingEndTime = '22:00';
By Djulia - October 28
You can try.
$view = isset($_GET['view']) ? $_GET['view'] : 'month'; // Default to 'month'
to:
$view = isset($_GET['view']) ? $_GET['view'] : 'week'; // Default to 'month'
Thanks,
By MercerDesign - October 28
Not sure what is happening now but when you click next week, previous week there are no events showing: https://rodneys46.sg-host.com/calendar/