[[getImageList? &value=`[[+yourSubMIGXfieldname]]` &tpl=`yourRowchunk`]]
[[getImageList? &value=`[[+times]]` &tpl=`migx_showtime_render_tpl`]]
<li>[[+times]]</li><span>Hello World!</span>
Finally it should be possible now with MIGX 2.4.0 beta3, to render subMIGX-items or other Information using modx-chunks for grid-columns:
https://github.com/Bruno17/MIGX/downloads
The new chunkrenderer.
...
[[getImageList? &value=`[[+yourSubMIGXfieldname]]` &tpl=`yourRowchunk`]]
MIGX should now render your MIGX-call into each Row of your MIGX-grid.
Lots of new possibilities with that feature!
Tried but is not working with a MIGXdb inputTV, nothing comes out in the expected grid Column, no errors in the console. ej:
submigx tv is called 'migx_showtime', created a new column for the grid in the parent migx configuration with fieldname 'migx_showtime' and in the Render Tab:
Render: this.renderChunk
Item:
Name: tplColumnSubmigx
Value: *empty*
Image: *empty*
Then in Chunks i have:
tplColumnSubmigx:
[[getImageList? &value=`[[+times]]` &tpl=`migx_showtime_render_tpl`]]
times being my column database name and migx_showtime_render_tpl my chunk tpl
then, in migx_showtime_render_tpl i have something like:
<li>[[+times]]</li><span>Hello World!</span>
the submigx-TV: is it migx or migxdb?
[[bloX? &where=`{"resource_id":"[[+id]]"}` &packagename=`yourPackage` &classname=`yourClass` &tpls=`row:yourRowtpl`]]
[2012-11-12 10:47:56] (ERROR @ /assets/components/migx/connector.php) Error 42S02 executing statement: Array ( [0] => 42S02 [1] => 1146 [2] => Table 'instance_c0000_modx.modx_showtime' doesn't exist )
<model package="cartelera" baseClass="xPDOObject" platform="mysql" defaultEngine="MyISAM" version="1.1" tablePrefix="plm_cms_">
[[bloX? &where=`{"cartelera_id":"[[+id]]"}` &packagename=`cartelera` &classname=`Showtime` &tpls=`row:migx_showtime_render_tpl`]]
getImageList does only work with a json-string as generated by a MIGX-TV
to get datas from custom-tables you will need a snippet like rowboat, bloX or a custom-snippet.
called like this in your column-chunk for example:
[[bloX? &where=`{"resource_id":"[[+id]]"}` &packagename=`yourPackage` &classname=`yourClass` &tpls=`row:yourRowtpl`]]