An SQLite3 database is now supported and is available for plugins to utilize.
If you are using a plugin, (such as the new popularity plugin),
ensure to call /install in a web browser to create the database schemas.
Note, this /install will also handle upgrades to the schema too.
New webcron support has been added in 6.0.0 to allow background tasks to be automated.
This webcron adds a background XHR call in pages to /cron to have browsers kick off these tasks.
If you prefer to schedule this with a controlled service task, just call /cron in a curl request.
get() vs direct access in templatesTo standardize meta value retrieval and storage, raw values are now stored in objects as the native object when possible. A side effect of this means Dates are stored as actual Date objects.
<% if(data.date) { %>
<time><%= data.date %></time>
<% } %>
// Renders Mon May 26 2025 00:00:00 GMT-0400 (Eastern Daylight Time)
<% if(data.date) { %>
<time><%= data.get('date') %></time>
<% } %>
// Renders 26 May 2025
This change is a breaking change and requires updates to templates. data.date to data.get('date').
Standard checks for if... can still use the direct property.
This .get() can be used for any attribute on Files, not just dates.
All values are converted to appropriate string values for use within templates.
The internal key files has been renamed to allFiles.
This generally will not break most templates, but if you are using files in your templates,
you will need to update to allFiles.
Update your templates to use data.currentPage instead of data.page for keeping track
of the current page number being viewed when pagination is enabled.
This change was implemented to allow the use of "page" as a file type,
this is useful if you want the URL to be /page/about.html instead of /pages/about.html.
After this update, currentPage is now a reserved word and cannot be used as a file type.
// Old code
<% if (data.totalPages > 1) { %>
<% if (data.page > 1) { %>
<a href="<%= data.getPreviousPageUrl() %>" title="Previous Page">«</a>
<% } %>
Page <%= data.page %> of <%= data.totalPages %>
<% if (data.page < data.totalPages) { %>
<a href="<%= data.getNextPageUrl() %>" title="Next Page">»</a>
<% } %>
<% } %>
// New code
<% if (data.totalPages > 1) { %>
<% if (data.currentPage > 1) { %>
<a href="<%= data.getPreviousPageUrl() %>" title="Previous Page">«</a>
<% } %>
Page <%= data.currentPage %> of <%= data.totalPages %>
<% if (data.currentPage < data.totalPages) { %>
<a href="<%= data.getNextPageUrl() %>" title="Next Page">»</a>
<% } %>
<% } %>
A new service worker has been added to v6.0.0; to use it add the following to your config.php:
return [
// ...
'serviceWorker' => true,
];
This will enable the default service worker and enable PWA support for application installation and offline browsing of your web application.
To configure the PWA options, add and adjust this in your config.php:
return [
// ...
'pwa' => [
'name' => 'My Company',
'short_name' => 'MyCo',
'display' => 'standalone', // or: "browser", "minimalUI", "inline"
'theme_color' => '#1e3a5d',
'background_color' => '#ffffff',
],
];
Icons are now supported natively when using the backend application.
This means that if config.php or your theme settings.php contains icons,
take note if they should either be removed or if the favicon should be removed from the HTML.
New fade animation support is included in 6.0.0 for base content.
To make use of this, add styles for .cms-fade-in and .cms-fade-out
with appropriate animation styles in your custom CSS.
This is not strictly required, but can be beneficial for general user experience.
Refer to the content fade documentation for example styles to implement to support this new feature.