<![CDATA[ migx > getImageList: prefix possible? - My Forums]]> https://forums.modx.com/thread/?thread=103107 <![CDATA[migx > getImageList: prefix possible?]]> https://forums.modx.com/thread/103107/migx-getimagelist-prefix-possible#dis-post-554973

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?

]]>
stefan79w Nov 06, 2017, 12:41 PM https://forums.modx.com/thread/103107/migx-getimagelist-prefix-possible#dis-post-554973
<![CDATA[Re: migx > getImageList: prefix possible?]]> https://forums.modx.com/thread/103107/migx-getimagelist-prefix-possible#dis-post-554987 Bruno17 Nov 06, 2017, 09:14 PM https://forums.modx.com/thread/103107/migx-getimagelist-prefix-possible#dis-post-554987 <![CDATA[Re: migx > getImageList: prefix possible?]]> https://forums.modx.com/thread/103107/migx-getimagelist-prefix-possible#dis-post-554986
[[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.]]>
Bruno17 Nov 06, 2017, 09:10 PM https://forums.modx.com/thread/103107/migx-getimagelist-prefix-possible#dis-post-554986
<![CDATA[Re: migx > getImageList: prefix possible?]]> https://forums.modx.com/thread/103107/migx-getimagelist-prefix-possible#dis-post-554978

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]]
]]>
stefan79w Nov 06, 2017, 03:34 PM https://forums.modx.com/thread/103107/migx-getimagelist-prefix-possible#dis-post-554978
<![CDATA[Re: migx > getImageList: prefix possible?]]> https://forums.modx.com/thread/103107/migx-getimagelist-prefix-possible#dis-post-554976 lkfranklin Nov 06, 2017, 01:47 PM https://forums.modx.com/thread/103107/migx-getimagelist-prefix-possible#dis-post-554976 <![CDATA[Re: migx > getImageList: prefix possible?]]> https://forums.modx.com/thread/103107/migx-getimagelist-prefix-possible#dis-post-554974 ]]> Bruno17 Nov 06, 2017, 12:48 PM https://forums.modx.com/thread/103107/migx-getimagelist-prefix-possible#dis-post-554974