Content management system Modx同上显示计数
我可以在同上占位符中使用变量吗? 比如说Content management system Modx同上显示计数,content-management-system,modx,ditto,Content Management System,Modx,Ditto,我可以在同上占位符中使用变量吗? 比如说 [!Ditto? &tpl=`TPL-jc` &display=$myVar] 而不是 [!Ditto? &tpl=`TPL-jc` &display=`10`] 您可以在同上占位符中使用另一个元素,例如 [!Ditto? &tpl=`TPL-jc` &display=`[+myVar+]`] (这是作为占位符的myVar) (这是myVar,作为输出所需值的代码段) (这是作为模板变量的myVar)
[!Ditto? &tpl=`TPL-jc` &display=$myVar]
而不是
[!Ditto? &tpl=`TPL-jc` &display=`10`]
您可以在同上占位符中使用另一个元素,例如
[!Ditto? &tpl=`TPL-jc` &display=`[+myVar+]`]
(这是作为占位符的myVar)
(这是myVar,作为输出所需值的代码段)
(这是作为模板变量的myVar)
[!Ditto? &tpl=`TPL-jc` &display=`[myVar]`]
[!Ditto? &tpl=`TPL-jc` &display=`[*myVar*]`]