We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 38705
    • 101 Posts
    Hi, i have created a migx-tv which can be called in a resource under TV's.
    Problem is if i use the this.renderChunk option in the column-config nothing gets outputted except te original value. However if I use this config in a global CMP the intended value is outputted.
    I have a column "bestuurslid" and a column "render_bestuurslid", the first column is hidden in the grid.

    *** UPDATE: Even stranger: if the MIGX is a config rather than the json for form and column it seems to work, a full name is outputted. However rightclick "edit" doesn't yield any action... ***

    Does anyone have some smart remarks about this behaviour?

    renderChunk:
    [[!lidFullName? &lid=`[[+bestuurslid]]`]]


    lidFullname snippet:
    if(isset($lid)&&is_numeric($lid)){ $gebruiker = $lid;}
    $profile = $modx->getObject('modUserProfile', $gebruiker);
    if(!$profile){
        $fullname = "Onbekend";
    }else{
        $fullname = $profile->get('fullname');
    }
    return $fullname;
    [ed. note: mintnl last edited this post 7 years, 7 months ago.]
      Addict since 2012....