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
+1 -1
View File
@@ -2,8 +2,8 @@
"site_title": "CodePress",
"content_dir": "content",
"templates_dir": "cms\/templates",
"default_page": "index",
"active_theme": "default",
"default_page": "auto",
"language": {
"default": "nl",
"available": [