| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| LessHeadCMS-v0.5.0.zip | 2026-11-19 | 1.3 MB | |
| README.md | 2026-11-19 | 4.0 kB | |
| v0.5.0 - Compositions_ edit page blocks inside the page, plus a web CMS template source code.tar.gz | 2026-11-19 | 1.2 MB | |
| v0.5.0 - Compositions_ edit page blocks inside the page, plus a web CMS template source code.zip | 2026-11-19 | 1.3 MB | |
| Totals: 4 Items | 3.9 MB | 0 | |
Highlights
Compositions (*--): edit parts inside their whole
Model "is part of" relationships with UML composition, e.g. blocks of a page:
Seite *-- "n" TextBlock : auf
KachelBlock *-- "1..*" Kachel : gehoert zu
- Same database as
Part "n" --> "1" Whole {cascade}: foreign key in the part, NOT NULL, ON DELETE CASCADE. Switching an existing-->+{cascade}relation to*--changes only the model – no table rebuild. - Editorial UI: the form of the whole gets a section per composition listing its parts, with
add / edit / duplicate / delete and up/down arrows. Parts sharing a
sortorder (via an abstract base class) appear in one mixed list with an "+ Add block ▸ …" menu. - Part form: shows a breadcrumb path (e.g. Page › TileBlock › Tile) instead of a select for the whole, plus "Save and back". Nesting works the same way.
- Sidebar: classes that only exist as parts are hidden for editors; admins see them in a collapsed "Parts" group.
- Diagram editor: filled diamond, new relation type "Composition (part of)", round-trip to
*--. - Clear schema errors for
"0..1"on the whole, n:n, self-composition, two wholes, cycles and abstract classes.
Moving across classes in a shared order
POST /api/{entity}/{id}/move now swaps with the next record of the group, regardless of its class,
when several subclasses share a sort order. The swap is one transaction across both tables; versions and
updated webhooks ("reorder": true) are written for both records. Returns 403 if the neighbour's class
is not editable.
New endpoint: /parts
GET /api/{whole}/{id}/parts/{name} returns all parts of a composition in order, mixed across classes,
each with its entity. ?expand=1 returns full records including media – one request to read a page with
all its blocks. Publicly readable; drafts only with a session and include_drafts.
New template: Web CMS base model (templates/web-cms.puml)
A complete, multilingual starting point for modelling any website: Website → Page (tree) → Block (in an area) → Content (channel-neutral).
- Navigation per location and language, page tree with SEO fields
- 8 block types (hero, text, image/slider with per-image captions, CTA, FAQ, tiles, dynamic list, shared snippet) as compositions of the page, in one shared manual order
- Content types (post, event, service, person, category, snippet) using the documented multilingual pattern
- Areas are roles (
MAIN,SIDEBAR…), not positions – layout stays in the frontend
See templates/web-cms.md for how to adapt it per project/design and how a frontend reads it.
Behaviour changes
movein a sharedsortorder (several subclasses) now swaps across classes (see above). Previously it only swapped within the same class.- Parts of a composition no longer appear in the sidebar for editors.
Upgrading
- No migration needed for existing schemas: without
*--in your active schema, the database is unchanged. Run "Check changes" once after uploading – expected: no changes. - Upload the PHP files (
src/,vendor/composer/,index.php) before any.pumlthat uses*--– the old parser does not know the syntax. - Remove the old asset bundles listed in the deployment notes.
Docs
New sections in docs/plantuml-syntax.md (composition: syntax, errors, migration cases),
docs/editorial-ui.md, docs/rest-api.md (compositions, /parts, cross-class move) and
docs/webhooks.md; README updated accordingly.
Known limitations
- Headings for abstract classes (e.g. "Block") are not yet translatable.
/partsexpands one level; nested parts (e.g. tiles inside a tile block) need a second request.- Top-level pages of all languages share one
sortgroup. - Not included: composition on an abstract class, drag-and-drop, inline editing of parts inside the whole.