thezenmonkey
thezenmonkey

Reputation: 189

Render Arbitrary HTML in custom summary_field

I'm trying to render HTML in a Gridfield using a custom Summary Field in SS3.3 the older technique no longer works.

Upvotes: 1

Views: 216

Answers (1)

Barry
Barry

Reputation: 3318

Have you tried casting like this?

$config->getComponentByType('GridFieldDataColumns')
    ->setFieldCasting(array('MyField' => 'HTMLText->forTemplate'));

Upvotes: 1

Related Questions