Calendar Calendar for Craft

Developer

Console Commands

Calendar includes several console commands to allow you to run cleanup tasks and other tasks.

Resave Events

If you need to resave all Calendar events, you can do so with the calendar/events/resave CLI command. Most of the arguments available to Craft's resave/entries command are available here too, so if you need to also update the Craft Search Index, be sure to add --update-search-index.

php craft calendar/events/resave --update-search-index
1

Migrate Craft 4 Element Titles 5.0.4+

If you have upgraded your Craft 4 site to Craft 5, please note that the Craft migration process does not automatically migrate submission Element titles. In Craft 5, Element titles are now stored in the elements_sites table, and the content table which used to store Element titles is no longer used.

While most plugins could include a separate migration script to handle this, Calendar 5 supports both Craft 4 and Craft 5, making this path impossible. Instead, a CLI command has been included that needs to be executed once after upgrading from Craft 4 to Craft 5.

WARNING

This CLI command is only applicable to sites that have migrated from Craft 4 to Craft 5 while Calendar was installed.

php craft calendar/events/fix-titles
1