문제

Using MODX Evo 1.0.7

I am using phx:tv in a chunk like this:

[+phx:tv=`14?Photo`+]

Here is the phx:tv snippet (Source: http://wiki.modxcms.com/index.php/PHx/CustomModifiers#phx:tv)

    <?php
if(strlen($options )>0) {
    $data = explode("?",trim($options),2);
    $id= (!empty($data[0]) && is_numeric($data[0])) ? $data[0]: '';
    $tv= (!empty($data[1])) ? $data[1]: '';
    $result = $modx->getTemplateVar($tv, 'name', $id, 1);
    return $result['value'];
    }
?>

How can I use the phpthumb to resize the image in the Photo TV in the code?

도움이 되었습니까?

해결책

I haven't used phx or Evo for a long time, but you might try chaining it like this:

[+phx:tv=`14?Photo`:phpthumb=`w=450`+]
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top