[[!migxLoopCollection?
&packageName=`artwork`
&classname=`artWorks`
&sortConfig=`[{"sortby":"exhibition_resource_id","sortdir":"ASC"}]`
&where=`{"artist_resource_id":"[[*id]]"}`
&tpl=`tpl_artist_page_past_exhibtions`
]] <li><a href="[[~[[+exhibition_resource_id]]]]">[[getResourceField? &id=`[[+exhibition_resource_id]]` &field=`page title`]]</a></li>
9||12
This question has been answered by Bruno17. See the first response.
&where=`{"artist_resource_id":"[[*id]]","OR:artist_resource_id:LIKE":"[[*id]]||%","OR:artist_resource_id:LIKE":"%||[[*id]]||%","OR:artist_resource_id:LIKE":"%||[[*id]]"}`&where=`{"artist_resource_id:LIKE":"%||[[*id]]||%"}`try:
&where=`{"artist_resource_id":"[[*id]]","OR:artist_resource_id:LIKE":"[[*id]]||%","OR:artist_resource_id:LIKE":"%||[[*id]]||%","OR:artist_resource_id:LIKE":"%||[[*id]]"}`
or have a custom-processor, which makes sure, you have any number surrounded by ||
than you could just use:
&where=`{"artist_resource_id:LIKE":"%||[[*id]]||%"}`
[[getResources? &parents=`0` &depth=`10` &resources=`[[+exhibition_resource_id:replace=`||==,`]]` &tpl=`tpl_exhibition_link` ]]
<li><href="[[~[[+id]]]]">[[+pagetitle]]</a></li>
migxLoopCollection?
&packageName=`artwork`
&classname=`artWorks`
&sortConfig=`[{"sortby":"exhibition_resource_id","sortdir":"ASC"}]`
&where=`{"artist_resource_id":"[[*id]]"}`
&tpl=`tpl_artist_page_past_exhibtions`
]] [[getResources? &parents=`-1` &resources=`[[+exhibition_resource_id:replace=`||==,`]]` &tpl=`tpl_exhibition_link` ]]
8||12
8,12
[[migxLoopCollection?
&packageName=`artwork`
&classname=`artWorks`
&where=`{"artist_resource_id":"[[*id]]"}`
&tpl=`@CODE:[[+exhibition_resource_id]]`
&outputSeparator=`||`
&toPlaceholder=`resource_ids`
]]
[[getResources?
&parents=`-1`
&resources=`[[+resource_ids:replace=`||==,`]]`
&tpl=`tpl_exhibition_link`
]]