2013-05-08 1 views
0

Ditto 자리 표시 자 안에 변수를 사용할 수 있습니까? 예를 들어 Modx Ditto display count

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

대신

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

답변

0

당신은 동감 자리, 예를 들어, 내부에 다른 요소를 사용할 수 있습니다

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

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

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

(즉, 템플릿 변수로 myVar에있어)

(즉, 원하는 값을 출력하는 코드 조각으로 myVar에있어) (즉, 자리 표시 자로 myVar에의)