Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Modeladmin using Function in DataGrid


Go to End


766 Views

Avatar
lx

Community Member, 83 Posts

23 August 2012 at 5:17am

Edited: 23/08/2012 5:24am

Hi,

in SS2.4 i often used functions in columns of the modeladmins tablelistfield. (see attached screenshot)
This could easy be done by calling a function name in static $summary_fields = array();

But it doesnt seem to work in SS3.
So how can i show a boolean column of the grid as "yes"/"no" instead of ""/"1" ?

thanks,
lx

Attached Files