MODX3 - Collections Column Snippet Renderer, no html?

Hello,

in MODX2.x I have hade an Column Snippet Renderer like this:


<?php
$linkValue = $modx->getOption('value', $scriptProperties, '');

if ( $linkValue <> ""){
    
    $parsedURl = parse_url($linkValue);
    if (!preg_match('/^([a-z][a-z0-9\-\.\+]*:)|(\/)/', $linkValue)) {
        $linkValue = '//' . $linkValue;
    }    
    $output = '<a href="'.$linkValue.'" target="_blank" title="Website aufrufen">'.$linkValue.'</a>';
    return $output;
}

But in MODX3 with Collections 4. no html is rendered.

grafik

Any ideas?

thank you in advance.

bye
Chris

Take a look at this issue - does that help?

Yes, with this it runs again on modx3

thank you very much.

Best regards
Chris

1 Like