Silverstripe: Boolean Value Converter to Readable

Here is the solution for convert boolean value to be readable:

Add a function to convert the value to Yes or No in your DataObject class, then refer to the function instead of the DB field when defining the DOM or in your $summary_fields.

Leave a Reply

Your email address will not be published. Required fields are marked *

CAPTCHA