fix(templates): Live-Vorschau im Admin der Mitglieder-Seiten #55
No reviewers
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Komplett-Projekte/SuluProjekt_Schaufenster!55
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/vorschau-template-variablen"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Im Sulu-Admin zeigte die Live-Vorschau der Mitglieder-Seite
Variable "logo" does not exist(HTTP 500). Die Vorschau rendert nur den Blockcontent, Variablen am Template-Kopf ({% set %}außerhalb von Blöcken) gibt es dort nicht. Die öffentliche Seite lief fehlerfrei, deshalb fiel es bisher nicht auf. Gleiches galt für Vorlage B (blocks_first) und die Mitglieder-Übersicht.Änderungen
content(Mitglied A, B-erbt, Übersicht)templates/pages/partials/_mitglied_head.html.twigmit eigener Vorbereitungblocks_positionstatt über ein{% set %}docs/mitglieder-templates.md: Abschnitt „Live-Vorschau im Admin“ mit der RegelIm DDEV geprüft
h1, OG-Tags, ein LocalBusiness-JSON-LD, Block unter (A) bzw. über (B) den Kontaktdaten, Karte auf der ÜbersichtNicht geprüft
🤖 Generated with Claude Code
Sulu's live preview renders only the content block, so top-level set tags do not exist there ('Variable logo does not exist'). Preparation moves into the block, head output into a partial, and template B switches the block order with a block instead of a set. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>