Hi!
I am using the
http://modx.com/extras/package/googlemapstv2 called ShopLocation to add locations to my ressources. This works great! However i want to show a list of all stores and all locations on one site. therefor I use getressources to output a list of all my ressources like this:
<ul>[[getResources? &ressources=`[[+tv.wherecanibuyit]]` &tpl=`relatedPagesTpl`]]</ul>
The List is generated without problems.
The relatedPagesTpl contains the JSONtoChunk Snippet that should call the TV but it does not:
<li> [[+longtitle]]
Address:
[[+ShopLocation:JSONtoChunk=`MapChunk`]] </li>
Alternatively i tried
*ShopLocation without effekt. The snippet JSONtoChunk does not return anything when calles from a chunk itself. When called inside the template it works as expected. Is there anything i am doing wrong, or is this TV just not capable of beeing called from inside a chunk of a getressources call? Would be great if someone could help!
My MapChunk looks like this now:
City: [[*city]]<br />
long: [[+tv.longitude]]<br />
lat: [[*lattitude]]<br />
I tried to call the tvs with *, +, +tv without look...
[ed. note: flanger last edited this post 11 years, 4 months ago.]