I cannot believe how many hours I have spent trying to troubleshoot this problem, and it is holding up my entire project. Any help would be greatly appreciated. (Please note that I have read dozens of articles and forum posts about this issue and I have tried EVERYTHING in an attempt to get this working to no avail.)
SITUATION
I have a section container page [id=2] in which I want to display a selection of information from child resources contained within it (which all use the same template).
APPROACH
I am using a getResources query inside a chunk named [[$agentsList]] that is then embedded in the page to display the content according to a template named [[$agentSnapshot]] contained within a separate chunk.
RESULTS/PROBLEM
Everything works EXCEPT the TVs. NO TV will load, regardless of what it contains. I have even tried this with a blank template and nothing else, and the TVs simply will not load.
TV NAME
This TV has an "image" input type and "image" output type--and I have tried this with "image" input type and "default" and "text" output types, with no luck. It should go without saying that the images are actually in the filesystem and they appear if I call them from static HTML directly.
GETRESOURCES QUERY ( contained within chunk [[$agentsList]] )
[[!getResources? &parents=`2` &limit=`15` &processTVs=`1` &includeTVs=`1` &includeContent=`1` &tpl=`agentSnapshot` &sortBy=`id` &sortdir=`ASC`]]
I have also tried including &tvPrefix=`tv.` / &prepareTVs=`1` / &prepareTVList=`tv.agentPhoto` / &processTVList=`tv.agentPhoto` and NONE of them made any difference.
TEMPLATE CHUNK ( contained within chunk [[$agentSnapshot]] )
<div class="small-12 medium-6 large-4 columns">
<img src="[[+tv.agentPhoto]]" alt="[[+pagetitle]]">
<div class="panel">
<h5>[[+pagetitle]]</h5>
<h6 class="subheader"><a href="[[~[[+id]]]]" title="Full bio for [[+pagetitle]]">Full bio</a></h6>
</div>
</div>
The output looks like this:
<div class="small-12 medium-6 large-4 columns">
<img src="" alt="Jane Smith">
<div class="panel">
<h5>Jane Smith</h5>
<h6 class="subheader"><a href="jane-smith.html" title="Full bio for Jane Smith">Full bio</a></h6>
</div>
</div>
I hope this is clear and that someone can help me out. If it is relevant, I am developing on Mac OS X 10.10 using MAMP Pro with PHP 5.5.18 and MySQL.
Thanks,
Michael
[ed. note: etherweave last edited this post 11 years, 11 months ago.]