0
我試圖從模板變量中檢索圖像。不過,我正在嘗試將博客模板上的圖像拉出來。每當我走下一層時,它都可以毫無問題地工作。我試過使用GetResources和GetResourceField來獲取頂層的圖像,但目前爲止沒有結果。這是我的代碼,任何建議都會很棒。MODX Rev:從電視檢索圖像
[[getResourceField? &id=`[[*articleImage]]` &isTV=`1` &processTV=`1`]]
[[*articleImage:phpthumbof=`w=120&h=120`]]
[[!getResources?
&showHidden=`1`
&limit=`4`
&includeContent=`1`
&includeTVs=`1`
&processTVs=`1`
]]
好了,所以我說:TPL ='imgBlog'所以結果是輸出到塊。但是,塊仍然無法檢索圖像路徑。 GetResources似乎工作。任何幫助? – Eagle
好的問題解決了,這是使用的代碼: 模板: [[!getResources? &showHidden ='1' &TPL ='imgBlog' &極限='4' &includeContent ='1' &includeTVs ='1' &tvPrefix ='tv.' ]] 組塊: – Eagle