Relative Content

Tag Archive for phpsymfonyfieldeasyadmin

Replace null output for easyadmin field on detail page

For any given field within Symfony’s easyadmin, is there an ability to replace the null badge with other HTML (or even just a string)? In the following example, I would like to display “Not set” versus the null badge, and only on the read-only detail page, not new/edit form page. I imagine this could be done with a custom field, but looking for a built-in option so I don’t have to redefine a datetime field.

Replace null output for easyadmin field on detail page

For any given field within Symfony’s easyadmin, is there an ability to replace the null badge with other HTML (or even just a string)? In the following example, I would like to display “Not set” versus the null badge, and only on the read-only detail page, not new/edit form page. I imagine this could be done with a custom field, but looking for a built-in option so I don’t have to redefine a datetime field.