문제

I have the following getResources line:

[[!getResources? &parents=`5` &tpl=`projlink` ]]

Then in the chunk I am using as a template (projlink) I have:

<div class="projname">[[+pagetitle]]</div>
<div class="projinfo">[[+tv.projinfo]]</div>

Now the pagetitle displays fine but not the TV.

Naturally I have checked that the resources retrieved do have templates that have the projinfo TV and that is all fine. I just dont know whats going on - this all seems correct to me. Can anyone help me out at all?

도움이 되었습니까?

해결책

use the includeTVs flag.

[[!getResources? &parents=`5` &tpl=`projlink` &includeTVs=`1` ]]
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top