We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 45766
    • 78 Posts
    Hi, its me again smiley

    Is it possible to use a prefix with getImageList?
    I have a Resource with a TV and a MIGx TV which has a key with exactly the same Name like the TV.

    Do i have to rename the migx key or is it possible to use a prefix for getImageList?

      • 4172
      • 5,888 Posts
      what is a migx key? Do you have a code-example, what you mean?
        -------------------------------

        you can buy me a beer, if you like MIGX

        http://webcmsolutions.de/migx.html

        Thanks!
        • 17301
        • 932 Posts
        I think he means placeholder
          ■ email: [email protected] | ■ website: https://alienbuild.uk

          The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
          • 45766
          • 78 Posts
          Sorry for the confusion. I mean "field" wink

          TV-Name
          presentationStyle

          Snippet call
          [[!getImageList?
              &tvname=`content-section`
              &tpl=`@FIELD:presentationStyle` <== presentation style from within migx (see below)
              &limit=`20`
              &docid=`[[*id]]`
            ]]
          


          content Section
          [
          {"caption":"Single Box", "fields": [
            {"field":"mainImage","caption":"mainImage","inputTV":"mainImage"},
            {"field":"presentationStyle","caption":"presentationStyle","inputTV":"presentationStyle"},
            {"field":"moreImages","caption":"Images","inputTV":"moreImages"}
          ]}
          ]
          


          presentationStyle would be taken from the Resource TV not from the MIGx TV.

          With Prefix (maybe?)
          [[!getImageList?
              &tvname=`content-section`
              &tpl=`@FIELD:presentationStyle` <== presentation style from within migx (see below)
              &limit=`20`
              &docid=`[[*id]]`
              &prefix=`migx`
            ]]
          


          migx tpl
          [[+migx.presentationStyle]]
            • 4172
            • 5,888 Posts
            you can try this way:

            [[getImageList?
                &tvname=`content-section`
                &tpl=`@FIELD:presentationStyle` <== presentation style from within migx (see below)
                &limit=`20`
                &presentationStyle=`[[+presentationStyle]]`
                &docid=`[[*id]]`
              ]]


            migx tpl

            [[+property.presentationStyle]]


            and if there is no reason to call it uncached, call it cached.
              -------------------------------

              you can buy me a beer, if you like MIGX

              http://webcmsolutions.de/migx.html

              Thanks!
              • 4172
              • 5,888 Posts
              oh, and you shouldn't use any TV as inputTV, which is used in a Template!
                -------------------------------

                you can buy me a beer, if you like MIGX

                http://webcmsolutions.de/migx.html

                Thanks!