feat(post-form): inject active-trip parent server-side (U1)

Derive the entry write target from site.active_trip at submit time in
cache-on-save's onFormValidationProcessed handler, and fail closed
(ValidationException) when no active trip is set. Removes the hardcoded
pageconfig.parent that had to be hand-synced with active_trip.

Refs R1, R2, AE2, KTD1.
This commit is contained in:
2026-07-04 15:29:07 +02:00
parent 924cfc18e2
commit 817c20c24a
2 changed files with 52 additions and 2 deletions
+2 -2
View File
@@ -4,9 +4,9 @@ template: post-form
access:
site.login: true
# Keep in sync with active_trip in user/config/site.yaml
# Parent (write target) is injected server-side from site.active_trip by the
# cache-on-save plugin (onFormValidationProcessed) — no manual sync needed.
pageconfig:
parent: '/trips/italy-2026-demo/dailies'
slug_field: 'date,title'
overwrite_mode: false