We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 41294
    • 34 Posts
    Want to display advertisements listed on MIGX, there are certain sections on a template where 1 advertisement will display. Example will be displaying at the Top, Right, Bottom sections of a page. Advertisements should not be displayed repeatedly and will randomly display on all 3 sections.

    I read MIGX frontend documentation and i think "toJsonPlaceholder" describes what i want, but when i tried it, it randomize the Ads but all of the Ads sections displays the same content.

    Any ideas or suggestions on how to properly use it? Or any way MIGX can do that?


    Thanks smiley
      • 4172
      • 5,888 Posts
      try &offset and &limit on the places

      [[getImagelist? 
      &value=`[[+jsonoutput]]`
      &limit=`1`
      &offset=`0`
      ]] 


      [[getImagelist? 
      &value=`[[+jsonoutput]]`
      &limit=`1`
      &offset=`1`
      ]] 


      [[getImagelist? 
      &value=`[[+jsonoutput]]`
      &limit=`1`
      &offset=`2`
      ]] 
      
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 41294
        • 34 Posts
        Awesome Bruno17... that works! Thanks