Question

I have a structure like this: http://gyazo.com/3deb54c430da3b3bff50c29f6f6e3947 and a code shown below:

[[$std_head]]

[[getResourceField]]

[[!getResources? &showHidden=`1` &parents=`5` &includeContent=`1` &includeTVs=`1` &processTVs=`1` &depth=`1`]]

[[$std_foot]]

As shown in structure, all elements are connected, so must be shown dump of 2nd and 6th elements. So, chunks working, getResourceField working, getResources - not. why can it be?

Was it helpful?

Solution 4

With template chunk all working! (for example &tpl=tplll) Dump isn't shown nor on my local server, nor on hosting, nor on local server of my australian friend who have very different version of all environment. With chunk all works on all system. I think, problem solved. GetResource don's show dump now, but it isn't written in manual.

OTHER TIPS

The call seems valid. Are you sure you have getResources installed properly?

are you seeing the content for [[$std_foot]] - if not there is probably an error. getResourceField should have parameters. test your template without it. Also - getResourcers should just dump an array of resources if you don't include the template parameter. as goldsky says the call looks good, I think something else is causing the error.

GetResources needs a template or placeholder to output to.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top