[
{"caption":"Box", "fields": [
{"field":"FBTitle","caption":"Title", "inputTV":"Text"},
{"field":"FunctionBoxImg","caption":"Image","inputTV":"Image"},
{"field":"FBLink","caption":"Page Link","inputTV":"ResourceList"}
]}
] [
{"header": "Function Box Title", "width": "160", "sortable": "false", "dataIndex": "FBTitle"},
{"header": "Function Box Image", "width": "160", "sortable": "false", "dataIndex": "FunctionBoxImg"},
{"header": "Function Box Page Link", "width": "160", "sortable": "false", "dataIndex": "FBLink"}
]This question has been answered by multiple community members. See the first response.
{"field":"FBLink","caption":"Page Link","inputTVtype":"listbox","inputOptionValues":"@CHUNK resourcelist_options"}--select a Resource==||
[[migxLoopCollection?
&classname=`modResource`
&tpl=`@CODE:[[+pagetitle]]==[[+id]]`
&outputSeparator=`||`
&sortConfig=`[{"sortby":"pagetitle"}]`
&where=`{"parent":"theParentID"}`
]]
<?php
$parent = $modx->getOption('parent',$scriptProperties,0);
$depth = $modx->getOption('depth',$scriptProperties,10);
$options['context'] = $modx->getOption('context',$scriptProperties,'web');
$childids = $modx->getChildIds($parent,$depth,$options);
return implode(',',$childids);
--select a Resource==||
[[migxLoopCollection?
&classname=`modResource`
&tpl=`@CODE:[[+pagetitle]]==[[+id]]`
&outputSeparator=`||`
&sortConfig=`[{"sortby":"pagetitle"}]`
&where=`{"parent:IN":[ [[getChildIds? &depth=`3` &parent=`theParentID`]] ]}`
]]