We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37165
    • 89 Posts
    The documentation for this plug in only says

    Template Usage
    [[*tvValue:JSONtoChunk=ChunkName]]
    Placeholders in chunk
    Street : [[+street]]
    Housenumber : [[+housenumber]]
    Zipcode : [[+zipcode]]
    City : [[+city]]
    State : [[+state]]
    Country : [[+country]]
    Latitude : [[+latitude]]
    Longitude : [[+longitude]]


    However I have no idea what to do with this. Does anyone have an example of what call to make in the template and chunk to make this work? I searched around but could not find anything and the plug-in page doesn't have any documentation.
      • 37110
      • 72 Posts
      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]]
        • 37110
        • 72 Posts
        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>
          • 37165
          • 89 Posts
          Thanks that helps. AWESOME extra by the way. Will be using it a lot
            • 36446
            • 184 Posts
            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?

              https://www.beautyislife-shop.de - premium make-up!
              https://www.topsterne.de - sell it here!
              ---------------------------------------------------------
              • 37165
              • 89 Posts
              Flanger, you can follow wiegers example above. Ignore the [[+key]]. Just put the info you want in the chunk, like [[+zipcode]], [[+city]], etc.
                • 36446
                • 184 Posts
                Hey rrswans thanks for taking the time to answer:

                Quote from: rrswans at May 20, 2015, 08:20 AM
                Flanger, 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


                  https://www.beautyislife-shop.de - premium make-up!
                  https://www.topsterne.de - sell it here!
                  ---------------------------------------------------------