0

I have a problem regarding showing the contents of template file.

My actual code to get this template is:

[[!getPage? &element=`getResources`
            &tpl=`individual-productswebspec`
            &sortby=`menuindex`
            &sortdir=`ASC`
            &includeContent=`1`
            &includeTVs=`1`
            &limit=`[[!sortValue]]`
]]

Where individual-productswebspec is my file which I want to show contents in &tpl= variable and it is stored in chunks folder.

My another page is showing this same content fine without any error but when i show this &tpl=individual-productswebspec on anther page say abc it shows PHP array in the <pre> tags.

My whole data is loaded to this <pre> tags. And no proper output is render on the page.

4

1 回答 1

0

当 getResources 没有 tpl 属性或找不到 tpl 中指定的块时,它只会将 results 数组转储到一组标签中。我怀疑在您的非工作页面上,您的 individual-productswebspec 拼写错误。[检查:案例?额外的空间?缺少回勾?]

于 2014-10-14T15:27:35.447 回答