This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
webmaster
Hi Guys,
I want know how it is possible we get list value from function.
for example we have statuses[1=>'approved',2=>'pending',3=>'canceled']
list contain status column (and it's numberic). I want to if list value is 1 it replace with approved and 2 replaced with pending and ...
Last updated
Scott
Ya, just make your column type partial
and reference a path
to a htm file. From here you can use simple PHP logic to display whatever you want by checking the $value
variable
1-3 of 3