Update version to 1.6.0 and refresh guides with clean URLs

This commit is contained in:
2026-07-14 15:39:34 +02:00
parent caa335a319
commit dacc439b1b
3 changed files with 44 additions and 33 deletions
+17 -16
View File
@@ -52,7 +52,7 @@ CodePress CMS is a lightweight, file-based content management system built with
- **Theme support** via `themes/` directory with theme.json per theme - **Theme support** via `themes/` directory with theme.json per theme
### Admin Console ### Admin Console
- Built-in admin panel at `/admin.php` - Built-in admin panel at `/admin`
- **Dashboard** with statistics (pages, directories, plugins) and quick actions - **Dashboard** with statistics (pages, directories, plugins) and quick actions
- **Content management** - Browse files, upload, create, edit, rename, move and delete - **Content management** - Browse files, upload, create, edit, rename, move and delete
- **CodeMirror editor** with toolbar (bold, italic, heading, link, image, list, media insert) - **CodeMirror editor** with toolbar (bold, italic, heading, link, image, list, media insert)
@@ -249,7 +249,7 @@ Media files (images, PDFs, video, audio) can be placed in any `content/` subdire
### Access ### Access
- **URL**: `/admin.php` - **URL**: `/admin`
- **Default login**: `admin` / `admin` - **Default login**: `admin` / `admin`
### Routes ### Routes
@@ -367,21 +367,22 @@ plugins: HTMLBlock, MQTTTracker
## URL Structure ## URL Structure
### Frontend Page URLs ### Frontend Page URLs
- **Home**: `/` or `?page=index&lang=en` - **Home**: `/` or `/en/`
- **Page**: `?page=folder/page&lang=en` - **Page**: `/en/folder/page`
- **Search**: `?search=query` - **Search**: `?search=query` (via search form)
- **Guide**: `?guide` - **Guide**: `/en/guide`
- **Language switch**: `?lang=nl` or `?lang=en` - **Language switch**: `/nl` or `/en`
### Media URLs ### Media URLs
- **Media**: `/-media/path/to/file.jpg` (from any content subdirectory) - **Media**: `/-media/path/to/file.jpg` (from any content subdirectory)
- **Assets**: `/-assets/file.jpg` (from content/-assets/, backward compatible) - **Assets**: `/-assets/file.jpg` (from content/-assets/, backward compatible)
### Admin URLs ### Admin URLs
- **Admin**: `admin.php?route=dashboard` - **Admin**: `/admin`
- **Edit content**: `admin.php?route=content-edit&file=page.md` - **Dashboard**: `/admin/dashboard`
- **New content**: `admin.php?route=content-new&dir=folder` - **Edit content**: `/admin/content-edit?file=page.md`
- **Edit theme**: `admin.php?route=theme&edit=themename` - **New content**: `/admin/content-new?dir=folder`
- **Edit theme**: `/admin/theme?edit=themename`
## SEO Optimization ## SEO Optimization
@@ -510,21 +511,21 @@ The MQTTTracker plugin stores `broker_host`, `broker_port`, `client_id`, `userna
### How do I add new content? ### How do I add new content?
1. Via the admin panel: `admin.php?route=content-new` 1. Via the admin panel: `/admin/content-new`
2. Or upload files to the `content/` directory 2. Or upload files to the `content/` directory
3. Organize in logical directories 3. Organize in logical directories
4. Use correct filenames and extensions 4. Use correct filenames and extensions
### How do I move a file or directory? ### How do I move a file or directory?
1. Go to `admin.php?route=content` 1. Go to `/admin/content`
2. Click "Move" next to the item 2. Click "Move" next to the item
3. Select the target directory 3. Select the target directory
4. Confirm the move 4. Confirm the move
### How do I create a new theme? ### How do I create a new theme?
1. Go to `admin.php?route=theme` 1. Go to `/admin/theme`
2. Enter a name and click "Create" 2. Enter a name and click "Create"
3. Adjust colors, heights and background 3. Adjust colors, heights and background
4. Activate the theme 4. Activate the theme
@@ -564,8 +565,8 @@ The MQTTTracker plugin stores `broker_host`, `broker_port`, `client_id`, `userna
## Version ## Version
Current version: **1.5.0** (codename: "Enhanced") Current version: **1.6.0** (codename: "Enhanced")
Release date: 2025-11-26 Release date: 2026-07-14
## Support ## Support
+17 -16
View File
@@ -52,7 +52,7 @@ CodePress CMS is een lichtgewicht, file-based content management systeem gebouwd
- **Thema ondersteuning** via `themes/` map met theme.json per thema - **Thema ondersteuning** via `themes/` map met theme.json per thema
### Admin Console ### Admin Console
- Ingebouwd admin paneel op `/admin.php` - Ingebouwd admin paneel op `/admin`
- **Dashboard** met statistieken (aantal pagina's, mappen, plugins) en snelle acties - **Dashboard** met statistieken (aantal pagina's, mappen, plugins) en snelle acties
- **Content beheer** - Bestanden browsen, uploaden, aanmaken, bewerken, hernoemen, verplaatsen en verwijderen - **Content beheer** - Bestanden browsen, uploaden, aanmaken, bewerken, hernoemen, verplaatsen en verwijderen
- **CodeMirror editor** met toolbar (vet, cursief, kop, link, afbeelding, lijst, media invoegen) - **CodeMirror editor** met toolbar (vet, cursief, kop, link, afbeelding, lijst, media invoegen)
@@ -250,7 +250,7 @@ Media bestanden (afbeeldingen, PDFs, video, audio) kunnen in elke `content/` sub
### Toegang ### Toegang
- **URL**: `/admin.php` - **URL**: `/admin`
- **Standaard login**: `admin` / `admin` - **Standaard login**: `admin` / `admin`
### Routes ### Routes
@@ -368,21 +368,22 @@ plugins: HTMLBlock, MQTTTracker
## URL Structuur ## URL Structuur
### Frontend Pagina URLs ### Frontend Pagina URLs
- **Home**: `/` of `?page=index&lang=nl` - **Home**: `/` of `/nl/`
- **Pagina**: `?page=map/pagina&lang=nl` - **Pagina**: `/nl/map/pagina`
- **Zoeken**: `?search=zoekterm` - **Zoeken**: `?search=zoekterm` (via zoekformulier)
- **Handleiding**: `?guide` - **Handleiding**: `/nl/guide`
- **Taal wisselen**: `?lang=nl` of `?lang=en` - **Taal wisselen**: `/nl` of `/en`
### Media URLs ### Media URLs
- **Media**: `/-media/pad/naar/bestand.jpg` (uit elke content subdirectory) - **Media**: `/-media/pad/naar/bestand.jpg` (uit elke content subdirectory)
- **Assets**: `/-assets/bestand.jpg` (uit content/-assets/, backward compatible) - **Assets**: `/-assets/bestand.jpg` (uit content/-assets/, backward compatible)
### Admin URLs ### Admin URLs
- **Admin**: `admin.php?route=dashboard` - **Admin**: `/admin`
- **Content bewerken**: `admin.php?route=content-edit&file=pagina.md` - **Dashboard**: `/admin/dashboard`
- **Content nieuw**: `admin.php?route=content-new&dir=map` - **Content bewerken**: `/admin/content-edit?file=pagina.md`
- **Thema bewerken**: `admin.php?route=theme&edit=themanaam` - **Content nieuw**: `/admin/content-new?dir=map`
- **Thema bewerken**: `/admin/theme?edit=themanaam`
## SEO Optimalisatie ## SEO Optimalisatie
@@ -511,21 +512,21 @@ De MQTTTracker plugin slaat `broker_host`, `broker_port`, `client_id`, `username
### Hoe voeg ik nieuwe content toe? ### Hoe voeg ik nieuwe content toe?
1. Via het admin paneel: `admin.php?route=content-new` 1. Via het admin paneel: `/admin/content-new`
2. Of upload bestanden naar de `content/` map 2. Of upload bestanden naar de `content/` map
3. Organiseer in logische mappen 3. Organiseer in logische mappen
4. Gebruik juiste bestandsnamen en extensies 4. Gebruik juiste bestandsnamen en extensies
### Hoe verplaats ik een bestand of map? ### Hoe verplaats ik een bestand of map?
1. Ga naar `admin.php?route=content` 1. Ga naar `/admin/content`
2. Klik op "Verplaatsen" naast het item 2. Klik op "Verplaatsen" naast het item
3. Selecteer de doelmap 3. Selecteer de doelmap
4. Bevestig de verplaatsing 4. Bevestig de verplaatsing
### Hoe maak ik een nieuw thema? ### Hoe maak ik een nieuw thema?
1. Ga naar `admin.php?route=theme` 1. Ga naar `/admin/theme`
2. Voer een naam in en klik "Aanmaken" 2. Voer een naam in en klik "Aanmaken"
3. Pas kleuren, hoogtes en achtergrond aan 3. Pas kleuren, hoogtes en achtergrond aan
4. Activeer het thema 4. Activeer het thema
@@ -565,8 +566,8 @@ De MQTTTracker plugin slaat `broker_host`, `broker_port`, `client_id`, `username
## Versie ## Versie
Huidige versie: **1.5.0** (codenaam: "Enhanced") Huidige versie: **1.6.0** (codenaam: "Enhanced")
Releasedatum: 2025-11-26 Releasedatum: 2026-07-14
## Ondersteuning ## Ondersteuning
+10 -1
View File
@@ -13,8 +13,17 @@ return [
'changelog' => [ 'changelog' => [
'1.6.0' => [ '1.6.0' => [
'date' => '2026-06-24', 'date' => '2026-07-14',
'changes' => [ 'changes' => [
'Clean URLs: /nl/page/path instead of ?page=...&lang=nl',
'Clean admin URLs: /admin/route instead of admin.php?route=...',
'Apache .htaccess rewrite rules for clean URLs',
'PHP dev server router (cms/router.php) for local clean URLs',
'CSRF token on admin login form',
'Directory listing blocked (Options -Indexes)',
'Secure cookies (HttpOnly, Secure, SameSite)',
'Backup/sourcemap files blocked in .htaccess',
'Version disclosure disabled (meta generator removed)',
'Media browser modal with upload and recursive content tree scan', 'Media browser modal with upload and recursive content tree scan',
'CodeMirror editor with formatting toolbar (bold, italic, heading, link, image, list)', 'CodeMirror editor with formatting toolbar (bold, italic, heading, link, image, list)',
'Media button in editor toolbar with image size prompt (Markdown vs HTML mode)', 'Media button in editor toolbar with image size prompt (Markdown vs HTML mode)',