Nieuwste pagina-optie toegevoegd aan startpagina config
This commit is contained in:
@@ -11,5 +11,8 @@
|
|||||||
"session_timeout": 1800,
|
"session_timeout": 1800,
|
||||||
"max_login_attempts": 5,
|
"max_login_attempts": 5,
|
||||||
"lockout_duration": 900
|
"lockout_duration": 900
|
||||||
|
},
|
||||||
|
"config": {
|
||||||
|
"default_page": "auto"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,6 +18,7 @@
|
|||||||
<label for="default_page" class="form-label">Standaard/startpagina</label>
|
<label for="default_page" class="form-label">Standaard/startpagina</label>
|
||||||
<select name="default_page" id="default_page" class="form-select">
|
<select name="default_page" id="default_page" class="form-select">
|
||||||
<option value="auto" <?= ($configData['default_page'] ?? 'auto') === 'auto' ? 'selected' : '' ?>>Auto (eerste beschikbare pagina)</option>
|
<option value="auto" <?= ($configData['default_page'] ?? 'auto') === 'auto' ? 'selected' : '' ?>>Auto (eerste beschikbare pagina)</option>
|
||||||
|
<option value="newest" <?= ($configData['default_page'] ?? '') === 'newest' ? 'selected' : '' ?>>Nieuwste (laatste gewijzigde pagina)</option>
|
||||||
<?php foreach ($availablePages as $page): ?>
|
<?php foreach ($availablePages as $page): ?>
|
||||||
<option value="<?= htmlspecialchars($page) ?>" <?= ($configData['default_page'] ?? '') === $page ? 'selected' : '' ?>>
|
<option value="<?= htmlspecialchars($page) ?>" <?= ($configData['default_page'] ?? '') === $page ? 'selected' : '' ?>>
|
||||||
<?= htmlspecialchars(ucwords(str_replace(['-', '_'], ' ', $page))) ?>
|
<?= htmlspecialchars(ucwords(str_replace(['-', '_'], ' ', $page))) ?>
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ CodePress CMS is a lightweight, file-based content management system built with
|
|||||||
|
|
||||||
### Configuration
|
### Configuration
|
||||||
- **Settings form** in admin panel via `/admin/config`
|
- **Settings form** in admin panel via `/admin/config`
|
||||||
- Dynamic homepage setting via dropdown
|
- Dynamic homepage setting via dropdown (auto, newest modified page, or manual selection)
|
||||||
- SEO settings (description, keywords)
|
- SEO settings (description, keywords)
|
||||||
- Author information with links
|
- Author information with links
|
||||||
- Theme configuration via `themes/` directory
|
- Theme configuration via `themes/` directory
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ CodePress CMS is een lichtgewicht, file-based content management systeem gebouwd
|
|||||||
|
|
||||||
### Configuratie
|
### Configuratie
|
||||||
- **Instellingenformulier** in admin paneel via `/admin/config`
|
- **Instellingenformulier** in admin paneel via `/admin/config`
|
||||||
- Dynamische homepage instelling via dropdown
|
- Dynamische homepage instelling via dropdown (auto, nieuwste gewijzigde pagina, of handmatig)
|
||||||
- SEO instellingen (description, keywords)
|
- SEO instellingen (description, keywords)
|
||||||
- Author informatie met links
|
- Author informatie met links
|
||||||
- Thema configuratie via `themes/` directory
|
- Thema configuratie via `themes/` directory
|
||||||
|
|||||||
Reference in New Issue
Block a user