On March 26, 2019 we launched new MODX Forums. Please join us at the new MODX Community Forums.
Subscribe: RSS
  • 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?

    • 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!
      • I think he means placeholder
          ■ email: lk@alienbuild.uk | ■ 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.
        • 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]]
          • 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!
            • 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!