try
[[!getImageList?
&............
&...........
&toPlaceholder=`myMigxPh`
]]
[[+myMigxPh:isnot=``:then=`
<h2>Images</h2>
[[+myMigxPh]]
`:else=``]]
-
☆ A M B ☆
- 350 Posts
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
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]]`]]
Thank you, works like charm.
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?