-
- 5,888 Posts
try
[[!getImageList?
&............
&...........
&toPlaceholder=`myMigxPh`
]]
[[+myMigxPh:isnot=``:then=`
<h2>Images</h2>
[[+myMigxPh]]
`:else=``]]
Thanks for that Harmony, just want I needed for outputing several MIGX calls on one page for various tables, some of which were empty.
Thanks for sharing
Helen Warner
Number one pixel!
Proud to be linked with MODX at
Crimson Pixel
-
- 5,888 Posts
The MIGX - TV does return an empty json - string in some situations '[]'
Use the toPlaceholder - property and check the result for empty, like that:
[[getImageList?
&toPlaceholder=`migx_output`
&otherproperties ..........
]]
[[+migx_output:!empty=`show this:[[+migx_output]]`]]
-
- 7 Posts
Thank you, works like charm.
-
- 184 Posts
Hi! Why isn't it possible to set a default Value in the Migx Template that is used in case there are no migx elements defined in the page?
I'm using migx right now for a slideshow and do not want to add different slides on all pages. I just wanted to use the default value property of my tv but unfortunately this is not working.
Or am i doing somthing wrong?