나는이 getResourcesCall에게이ModX의의 GetResources - 덩어리 TPL에서 부모의 콘텐츠를 표시하는
[[!getResources? &tpl=
GRTpl &includeContent=
1 &includeTVs=
1 &parents=
[[* ID] ]]
[[+content]]
태그를 포함하고 GRTpl에서
하지만, 자녀의 콘텐츠가 아닌 부모 콘텐츠 만 표시합니다. 무엇을 준다!?
업데이트 : GRTpl에 ModX 출력 필터를 사용하고
. 그래서 선택에 따라 청크를 표시하는 단일 선택 목록 상자가 있습니다. 다음은 GRTpl입니다.
[[+tv.section_type:eq=`Type One`:then=`[[$Type One Chunk]]` ]]
[[+tv.section_type:eq=`Type Two`:then=`[[$Type Two Chunk]]` ]]
[[+tv.section_type:eq=`Type Three`:then=`[[$Type Three Chunk]]` ]]
[[+tv.section_type:eq=`Type Four`:then=`[[$Type Four Chunk]]` ]]