簡體   English   中英

Modx Ditto顯示計數

[英]Modx Ditto display count

我可以在Ditto占位符中使用變量嗎? 例如

[!Ditto? &tpl=`TPL-jc` &display=$myVar]

代替

[!Ditto? &tpl=`TPL-jc` &display=`10`]

您可以在Ditto占位符內使用另一個Element,例如

[!Ditto? &tpl=`TPL-jc` &display=`[+myVar+]`]

(這是myVar作為占位符)

[!Ditto? &tpl=`TPL-jc` &display=`[myVar]`]

(這是myVar,作為輸出所需值的代碼段)

[!Ditto? &tpl=`TPL-jc` &display=`[*myVar*]`]

(即myVar作為模板變量)

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM