We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 51020
    • 670 Posts
    Hi There,
    I cannot get my Migx TV (images) to display at all.

    I have a getPage call in my page template as per below:

    [[!getPage?
    &element=`getResources`
    &tpl=`newsPost`
    &parents=`4`
    &limit=`3`
    &includeContent=`1`
    &includeTVs=`1`
    &includeTVList=`Image,NewsImage`
    &processTVs=`1`
    &processTVList=`Image,NewsImage`
    &showHidden=`1`
    &hideContainers=`1`
    &cache=`0`
    &pageVarKey=`page`
    &sortby=`{"publishedon":"DESC"}`

    ]]


    Within the tpl (newsPost), I have the following:

    [[!getImageList?
    &tvname=`NewsImage`
    &tpl=`BigNewsImageTpl`
    &toPlaceholder=`BigNewsImages`
    &where=`{"Size:=":"large"}`
    &limit=`10`
    ]]
    [[!getImageList?
    &tvname=`NewsImage`
    &tpl=`SmallNewsImageTpl`
    &toPlaceholder=`SmallNewsImages`
    &where=`{"Size:=":"small"}`
    &limit=`10`
    ]]
    <div class="post">
    <h2>[[+pagetitle]]</h2>
    <p class="date">[[+publishedon:strtotime:date=`%b %d, %Y`]]</p>
    <div class="entry">
    [[+BigNewsImages]]
    [[+SmallNewsImages]]
    <div>
    [[+content]]
    </div>
    </div>
    </div>



    The 'pagetitle', 'date', and 'content' are rendering, but none of the Tvs (Image,NewsImage) are rendering.
    Am I confusing things by having a getImageList within a getPage call?

    I've tried everything I can think of - caching, not caching etc - but cannot get them to show.

    Help!!!!

    Thanks so much
    Andy

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

    • discuss.answer
      • 4172
      • 5,888 Posts
      &docid=`[[+id]]`


      and you don't need to inlclude and process the MIGX-TV.
      That's done by the getImageList - snippet.
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 51020
        • 670 Posts
        Thanks so much - I need to read up on why i need &docid=`[[+id]]` As I don't really understand it - so i will do some reading - thanks again for the solution!
          • 4172
          • 5,888 Posts
          well, otherwise getImageList doesn't know, from which resource to get the items, since you call it inside a getResources-tpl.
            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!
            • 4172
            • 5,888 Posts
              -------------------------------

              you can buy me a beer, if you like MIGX

              http://webcmsolutions.de/migx.html

              Thanks!