The UDT should not return anything in this case. So
Code: Select all
return $html;
The Event Manager passes a reference to the content (via $params['content']).
Code: Select all
return $html;
Code: Select all
...
{if $field->type == 'file'}
...
<pre>
filename: {$field->value}
print_r:
{$field->value|pathinfo|print_r}
</pre>
...