This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
devnull69
i have a list in a private plugin,
it displays is_activated as one of its columns is_activated i have put it as 1 or true.
i wan to display, if is_activated == true then display an icon or change text. how do i do this?
devnull69
ahh alright. ive found it. solved
public function listOverrideColumnValue($record, $columnName)
{
if($columnName == "main_status" && $record->main_hash == True)
{
return "Activated";
}
else return "Deactivated";
}
1-2 of 2