Have you seen our video tutorials? Check 'em out!

Boolean Admin View

jcastillotx - 1 month ago

I 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?

ryanthompson - 1 month ago

Check out the presenter methods for it: http://pyrocms.com/documentation/boolean-field-type/v2.1#usage/presenter-output

jcastillotx - 1 month ago

But the admin page is created automatically. So would I use the config function when I assign the fields?

ryanthompson - 1 month 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 - 1 month ago

if not a table let me know what you mean by:

admin index page