Modify td

Hi,
how can I put some tags into the list's td?
Say you want to show an image instead of a db field.

Thx.

Comments

  • edited 8:51AM
    You can adjust your model's list_items method to return an image for the field. For example, FUEL's assets_model does this. Here is another example:
    function list_items($limit = NULL, $offset = NULL, $col = 'date_added', $order = 'desc') { $data = parent::list_items($limit, $offset, $col, $order); foreach($data as $key => $val) { $data[$key]['image'] = '<img src="'.$val['image'].'" alt=""/>'; } return $data; }
Sign In or Register to comment.