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

hpanic32253
hpanic32253

Although this method works it wont find the result of the function when you search.

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.