We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 50574
    • 70 Posts
    Been struggling with this one and I can't for the life of me figure it out.
    Can a MigX TV be only called once on a site?

    I'm trying to pull the same images from a single MigX TV into two pages. The TV contains a list of images (and some text elements) and on one template I use
    [[!getImageList?
    &tvname=`instagramImages`
    &tpl=`instagramPolaroids`]]

    and on another
    [[!getImageList? 
    &tvname=`instagramImages`
    &tpl=`instagramList`]]

    The first template is
    <figure [[+dummy:is=`yes`:then=`data-dummy`]]>
    	<a href="[[+instagramLink]]" class="photostack-img"><img [[+instagramImage:phpthumbof=`w=280&h=280&dims=1&q=80`]] alt="[[+instagramTitle]]"/></a>
    	<figcaption>
    		<h2 class="photostack-title">[[+instagramTitle]]</h2>
    	</figcaption>
    </figure>
    and everything shows fine. The second template is
    <div class="col_list col_1">
        <div class="productItemContainer">
            <img [[+instagramImage:phpthumbof=`w=200&h=200&dims=1&q=50`]] />
        </div>
    </div>
    and nothing shows from within it, not even the wrapping elements, so I presume it's something to do with the getImageList call, somehow.

    The TV has access to both the templates used and any wrapping elements around the getListImage call show fine. I've tried just using getResources as well but that had no effect either. I'm at a loss, although I'm sure the solution will be something extremely simple.

    Any advice, as ever, is greatly appreciated.

    This question has been answered by Bruno17. See the first response.

    • discuss.answer
      • 4172
      • 5,888 Posts
      you are saying, you are trying to run the second getImageList at another resource?

      Or are you trying both calls at the same resource?

      If you are at another resource, you will need to add the resource-id, where you have the MIGX-TV with

      &docid=`XX`
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 50574
        • 70 Posts
        Sorry, yes I'm trying to put the call on two resources.
        I got there in the end (my calls were nested within nests within chunks within templates etc. etc.) by putting the resource ID of the first instance that the TV was called into the second resource's getImageList call (using &docid=``) so thanks for that.
          • 50070
          • 12 Posts
          Quote from: Bruno17 at Aug 15, 2015, 09:48 AM
          Or are you trying both calls at the same resource?

          Bruno - How can you do this? I need to output a MIGX TV on one place and then lower down the page with a different tpl.
            • 4172
            • 5,888 Posts
            you can have multiple getImageList - calls at the same page with different tpls
              -------------------------------

              you can buy me a beer, if you like MIGX

              http://webcmsolutions.de/migx.html

              Thanks!