Event Calendar - weekly view

82 posts by 2 authors in: Forums > CMS Builder
Last Post: 5 minutes ago   (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.

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

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/