From 842046ac824bd55f57ee9012cc7396852e54e82f Mon Sep 17 00:00:00 2001 From: Edwin Noorlander Date: Tue, 28 Jul 2026 15:39:12 +0200 Subject: [PATCH] =?UTF-8?q?Version=201.7.1=20=E2=80=94=20auto=20default=5F?= =?UTF-8?q?page=20detection?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- admin/templates/pages/config.php | 2 +- cms/core/class/CodePressCMS.php | 40 +++++++++++++++++++++++++++++++- config.json | 2 +- package.json | 2 +- public/admin.php | 2 +- version.php | 13 +++++++++-- 6 files changed, 54 insertions(+), 7 deletions(-) diff --git a/admin/templates/pages/config.php b/admin/templates/pages/config.php index f16c2e9..2fee8c6 100644 --- a/admin/templates/pages/config.php +++ b/admin/templates/pages/config.php @@ -17,7 +17,7 @@