Boolean Admin View
Created 8 years ago by jcastillotxI have a Boolean that I show on the admin index page of my module and it shows the value of 1 instead of yes or know. Do I need to define in the config to show the text instead?
jcastillotx
—
8 years ago
But the admin page is created automatically. So would I use the config function when I assign the fields?
ryanthompson
—
8 years ago
You talking about a table column?
You can map presenter methods like this: entry.boolean_example.icon
or whatever method (snake_case) or even literally entry.boolean_example.icon()
.
ryanthompson
—
8 years ago
Check out the presenter methods for it: http://pyrocms.com/documentation/boolean-field-type/v2.1#usage/presenter-output