Hi All,
I have a MIGX variable where i have to get the childs of a parent ID 3, in my call in formulier tabs I can only put hard coded. (eg. see numbers 7,14,15,39,120,132) they are the childs of parent ID 3, now if i make a new child, i have to add them manually. How can I call them of the parent ID 3 ??
[
{"caption":"Info", "fields": [
{"field":"titel","caption":"Titel"},
{"field":"titel-plaatsen","caption":"Titel plaatsen","inputTVtype":"listbox","inputOptionValues":"Ja==ja||Nee==nee"},
{"field":"slogan","caption":"Slogan"},
{"field":"slogan-plaatsen","caption":"Slogan plaatsen","inputTVtype":"listbox","inputOptionValues":"Ja==ja||Nee==nee"},
{"field":"link-plaatsen","caption":"Verwijs pagina plaatsen ??","inputTVtype":"listbox","inputOptionValues":"Nee==nee||Ja==ja"},
{"field":"link-aan","caption":"Kies verwijs pagina","inputTVtype":"listbox","inputOptionValues":"@EVAL $id = $modx->resource->get('id'); return $modx->runSnippet('pdoResources', array('parents'=>'7,14,15,39,120,132', 'showUnpublished'=>'1', 'showHidden'=>'1', 'hideContainers'=>'1','tpl'=>'TVlist','tplLast'=>'TVListLast','context'=>'web', 'limit'=>'0', 'sortby'=>'pagetitle','sortdir'=>'ASC'));"}
]},
{"caption":"Afbeelding", "fields":[
{"field":"slide-pos","caption":"Slide positie versnijding","inputTVtype":"listbox","inputOptionValues":"Centrum==C||Vanaf boven==T||Vanaf onder==B"},
{"field":"slide-afb","caption":"Afbeelding","inputTVtype":"image","sourceFrom":"migx"}
]}
]
greetings Appeltje