Template layouts- doc layout variable use in layout tag

Offen
#1,077 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
56/100
Issue-Typ
Dokumentation
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
php
Bereich
documentation

Rechercherichtung

Read the template layouts documentation and the layout tag entry point to locate where template_group/template parameters are explained. Add a clear example showing a layout variable in the top layout tag and explain a useful conditional layout choice; also document the caching behavior discussed in the issue. Done means the docs cover both topics accurately.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

So eeconf 2025 - complex layouts talk notes that the docs don't make it clear you can use a layout variable as the template_group/template value when setting the parameter in the top layout tag. This really opens up some options to conditionally determine what layout to use in earlier templates.

So- note that and it would be nice to include an example of how/why you might do this.

Also worth noting somewhere how well it interacts with caching. Template caching doesnt help- tag caching may well be worth it. Speedy fragment fcaching can be applied to end.

Vorherrschende Sprache
CSS
Sterne
22
Forks
79
Ø Merge
2 T. 1 Std.
Gemergte PRs (30 T.)
6

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus ExpressionEngine/ExpressionEngine-User-Guide

Alle Issues in ExpressionEngine/ExpressionEngine-User-Guide

Ähnliche Issues

Weitere Issues zu Documentation

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.