hasComposition()

* renderRegion()
* draft and published-state handling
* document and placement scheduling
* disabled-placement filtering
* ordered region rendering
* safe fallback when composition tables or document views are missing
* compatibility with common alternative column names
This commit is contained in:
Mark Gregory
2026-07-27 09:43:42 +01:00
parent a211b10e29
commit c972808d0a
22 changed files with 455 additions and 754 deletions
-37
View File
@@ -1,37 +0,0 @@
# Content Composer
The Content module provides reusable typed documents and ordered page regions.
## Phase 2 features
- Header, body and footer composition editor.
- Drag-and-drop ordering with server-side ownership validation.
- Add existing published or draft documents to a page.
- Remove a placement without deleting the reusable document.
- Create an independent page-specific draft copy.
- Shared-use warnings and deletion protection.
- Placement enable/disable and date scheduling.
- Content document creation, duplication, filtering and publishing controls.
- Authenticated Saasland homepage preview, including draft labels.
- Content Composer entry in the administration sidebar.
## Setup
```bash
php artisan migrate
php artisan content:install-saasland
```
Reset the seeded homepage composition when required:
```bash
php artisan content:install-saasland --force
```
Administration:
- `/admin/content`
- `/admin/content/pages/home`
- `/admin/content/pages/home/preview`
The public theme remains backward-compatible: when no composition exists, the legacy Saasland homepage, header and footer are rendered.