TC
Twill CMS•3y ago
Kormi

How can I edit an indexColumn value?

Hi, I have a boolean that i need to replace to "active" or "not active" this is my indexColumns in my controller protected $indexColumns = [ 'status' => [ 'field' => 'status', 'title' => 'Status', 'sort' => true, 'visible' => true, ], .... ]; How can I print "active" instead of 1? Thank u
12 Replies
ifox
ifox•3y ago
Hi @Kormi you can use an accessor on your model or a presenter
Hro
Hro•3y ago
For future reference, if you are using Twill 3 the form-builder is much more flexible and should be used over the $indexColumns array.
Kormi
KormiOP•3y ago
ok but i do not understand how to replace row reading this post
kallefrombosnia
kallefrombosnia•3y ago
Have you understood how this works from that thread?
ifox
ifox•3y ago
I don't think you linked the right thread @kalle
kallefrombosnia
kallefrombosnia•3y ago
Yeah I didnt but I tagged him later too on the right one. We could really get a FAQ channel here on Discord 😄
ifox
ifox•3y ago
like #👊support but we curate it? how do envision it?
kallefrombosnia
kallefrombosnia•3y ago
Something like that, but I didnt see an option od Discord to tag a thread or a post, so that reference to the actual thread/ post can be only made by markdown url format.
ifox
ifox•3y ago
like this?
Discord
Discord - A New Way to Chat with Friends & Communities
Discord is the easiest way to communicate over voice, video, and text. Chat, hang out, and stay close with your friends and communities.
ifox
ifox•3y ago
lol I don't get why there's no link feature in discord or am I just dumb and there is?
kallefrombosnia
kallefrombosnia•3y ago
test Only webhooks can post markdown formated URL-s
Want results from more Discord servers?
Add your server