Basically the problem is that when you post a big content via the module which has the column(field) type 'text', all data in the admin panel(dashboard) gets rendered as html and crashes the whole dashboard by breaking layouts and so on.
I want to prevent showing content from being rendered as an html in the dash board.
The screenshots are attached.
http://shadestyles.dk/fuel_error.pnghttp://shadestyles.dk/html_ren.png
Comments
The screen shots are included:
http://shadestyles.dk/left_panel.png
http://shadestyles.dk/main_panel.png
I've got multiple versions of your problem working fine. This is not an internal fuel bug.
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
require_once(FUEL_PATH.'models/base_module_model.php');
class Contents_model extends Base_module_model {
public $parsed_fields = array('content');
function __construct()
{
parent::__construct('content');
}
function list_items($limit = NULL, $offset = NULL, $col = 'id', $order = 'desc')
{
$this->db->select('id,content,page', false);
$data = parent::list_items($limit, $offset, $col, $order);
foreach($data as $key => $val)
{
$data[$key]['content'] = strip_tags($val['content']);
}
return $data;
}
}
class Content_model extends Base_module_record {
}