Event Calendar - weekly view

81 posts by 2 authors in: Forums > CMS Builder
Last Post: Yesterday at 1:15am   (RSS)

I've updated that.

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

I've done this, not sure I've done it right with the showme($events) bit.

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',

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.

Thank you.

How do I make the week view open as the default view?

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,

Perfect, thank you

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/