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

    I've got the following code:
    [[*radioButtonTV:is=`0`:then=``:else=`
      <div>
       [[!getImageList? &tpl=`@FIELD:tpl` &tvname=`myMigxTv`]]
      </div>
    `]]
    


    It works fine if the tv is set to 0, but if it is set to 1 it breaks and gives me this output:
     <div>
       [[!getImageList? &tpl=
     </div>
    


    I also tried to use 'notempty' or pack the whole thing into a chunk, but that didn't change anything.
    I had problems with these filters yet, but until now I always managed to work around them. Seems like the "@" caueses the problem here..
    Any idea how i could fix this?

    thanks!

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

    • discuss.answer
      • 4172
      • 5,888 Posts
      this may be an issue with big results inside a conditional ouput-filter.

      does this work?

      put this in a chunk 'myGetImageList_1':

        <div>
         [[!getImageList? &tpl=`@FIELD:tpl` &tvname=`myMigxTv`]]
        </div>


      [[$myGetImageList_[[*radioButtonTV]]]]


      or:

      [[$[[*radioButtonTV:is=`0`:then=``:else=`myGetImageList_1`]]]]


      or try this:

      [[*radioButtonTV:is=`0`:then=``:else=`<div>`]]
      [[![[*radioButtonTV:is=`0`:then=``:else=`getImageList? &tpl=`@FIELD:tpl` &tvname=`myMigxTv``]]]]
      [[*radioButtonTV:is=`0`:then=``:else=`</div>`]]



      does one of them work? There are more ways.
      I would prefer the first one.
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 41647
        • 49 Posts
        tried the first one and it works perfect!
        thanks!