We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 40385
    • 75 Posts
    Hello,

    I am using the following setup:

    [[!getPage?
    &element=`getImageList`
    &tpl=`randomTpl`
    &limit=`3`
    &tvname=`getProducts`
    ]]


    The getProducts MIGX TV includes another MIGX TV to loop through different product properties per product using render.Chunk. Everything is working as expected except for the getPage call. The pagination is not displayed at all unless I remove the tpl property so that raw array information per item is displayed. Without the tpl property I can see the pagination except for the last page. The pagination is never displayed on the last page.

    And here's the interesting part:

    I am using the exact same getPage call with different MIGX TVs all over my website without any problems. So I assume the issue I am facing is related to the MIGX within MIGX setup. Maybe getPage gets confused with the total placeholder when using MIGX within MIGX. Did I forget any important property?

    Thanks for any suggestions!!

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

    • discuss.answer
      • 4172
      • 5,888 Posts
      try

      [[!getPage?
      &element=`getImageList`
      &tpl=`randomTpl`
      &limit=`3`
      &tvname=`getProducts`
      &totalVar=`productsTotal`
      ]]


      otherwise one of the inner getImageList-calls would set the total-placeholder with a wrong value.
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 40385
        • 75 Posts
        Awesome @Bruno17 !! It's working now...Thanks so much!!