Version 1.7.1 — auto default_page detection

- config.json now has default_page: auto for fresh installs
- CodePressCMS::detectDefaultPage() scans content/ for first available file
- getHomepageTitle() also respects auto mode
- Admin config form preserves auto as selectable option
- Save handler falls back to auto instead of index
This commit is contained in:
2026-07-28 15:39:12 +02:00
parent 50d19b2c11
commit 842046ac82
6 changed files with 54 additions and 7 deletions
+11 -2
View File
@@ -6,12 +6,21 @@
*/
return [
'version' => '1.7.0',
'version' => '1.7.1',
'release_date' => '2026-07-28',
'codename' => 'API',
'codename' => 'Auto',
'status' => 'stable',
'changelog' => [
'1.7.1' => [
'date' => '2026-07-28',
'changes' => [
'Auto-detect first available content page when default_page is set to "auto"',
'default_page now defaults to "auto" in config.json for fresh installs',
'Admin config form preserves "auto" as a selectable option',
'No more empty "-- Selecteer --" option that silently saved "index"',
]
],
'1.7.0' => [
'date' => '2026-07-28',
'changes' => [