We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20135
    • 188 Posts
    I'm trying to do something particularly simple, and running into issues. I have a simple MIGX TV with a number of text entries, and image selector, and 2 fields for collecting IDs of other resources to use as links. My basic getImageList call is as follows:
    <a href="[[~[[!getImageList? &tvname=`migx_lwvProgramMisc` &tpl=`@CODE:[[+prog_formID]]`]] ]]" class="color_orange lh_medium">

    where [[+prog_formID]] is the ID of another resource.

    However, the link is not being created; the Error Log says that getImageList is not a valid integer and cannot be passed to makeUrl(). I've tried using inputTV where the TV Input Type is set as a Resource List, I can easily select the resource in the MIGX editor, but the link does not get created; and I've tried using inputTVtype set as number to pass the integer - but both without success. Can anyone explain to me why this is, and how I can create a link to another resource using MIGx please? I would have thought this to be an easy thing...

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

    • discuss.answer
      • 4172
      • 5,888 Posts
      it has todo with the parsing order of cached/uncached tags and maybe the parsing order of the different tag-types.

      try:

      [[~[[getImageList? &limit=`1` &tvname=`migx_lwvProgramMisc` &tpl=`@CODE:[[+prog_formID]]`]] ]]


      this does only work for one item, of course.

      or put it into a chunk

      [[getImageList? &tvname=`migx_lwvProgramMisc` &tpl=`tpl_prog_form_link`]]


      [[~[[+prog_formID]]]]


        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 20135
        • 188 Posts
        Success! Thanks Bruno. Running MIGx cached shouldn't be a problem while the resource is set to clear the cache on save, right?
          • 4172
          • 5,888 Posts
          That's right.
            -------------------------------

            you can buy me a beer, if you like MIGX

            http://webcmsolutions.de/migx.html

            Thanks!
            • 20135
            • 188 Posts
            No worries, thanks again.