If you call inside your template [[*tvValue:JSONtoChunk=`ChunkName`]]
you have to create a chunk and replace ChunkName with that name.
Inside that chunk you have the placeholders
Street : [[+street]]
Housenumber : [[+housenumber]]
Zipcode : [[+zipcode]]
City : [[+city]]
State : [[+state]]
Country : [[+country]]
Latitude : [[+latitude]]
Longitude : [[+longitude]]
Example:
TvName : address
ChunkName: addressTpl
[[*address:JSONtoChunk=`addressTpl`]]
Inisde the addressTpl:
<table>
<tr>
<td>Street and Housenumber </td>
<td>[[+street]] [[+housenumber]]</td>
</tr>
<tr>
<td> Zipcode, City</td>
<td>[[+zipcode]], [[+city]]/td>
</tr>
</table>
Thanks that helps. AWESOME extra by the way. Will be using it a lot
Hi! Thanks yes - this helped - unfortunately i do not get how to use this inside a chunk. In the manual it says:
* Usage: [[*tvValue:JSONtoChunk=`ChunkName`]]
* Usage inside chunk: [[+key]]
but i do not know what this means - i cannot get it to work. Any suggestions anyone?
Flanger, you can follow wiegers example above. Ignore the [[+key]]. Just put the info you want in the chunk, like [[+zipcode]], [[+city]], etc.
Hey rrswans thanks for taking the time to answer:
Quote from: rrswans at May 20, 2015, 08:20 AMFlanger, you can follow wiegers example above. Ignore the [[+key]]. Just put the info you want in the chunk, like [[+zipcode]], [[+city]], etc.
Unfortunately i didn't asked really understanable what i am trying to achieve here. I want to use the Google Maps Template Variable in a getressource call. I tried to put it more clearly here:
https://forums.modx.com/thread/97209/using-google-maps-tv-with-getressources#dis-post-525782