Template layouts- doc layout variable use in layout tag

未關閉
#1,077 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
56/100
Issue 類型
文件
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
php
領域
documentation

研究方向

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.

由索引模型根據 Issue 內容生成。

描述

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.

主要語言
CSS
星號
22
分支
79
平均合併
2 天 1 小時
30 天內合併 PR
6

環境準備

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

ExpressionEngine/ExpressionEngine-User-Guide 的其他 Issue

查看 ExpressionEngine/ExpressionEngine-User-Guide 的全部 Issue

相似的 Issue

更多 Documentation Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。