Hello, i'm trying to show images in my helperlist from a custom path, can this be achievable?
So instead of 'image' => 's' , I would like it to be 'image' => 'localhost/prestashop/themes/default/images/'//My custom path
and instead of 'image_id' => 1, I would like it to be 'image_id' => 'test.jpg'//name of the image,
I searched the forum for a post similar with this one, but I couldn't find one, any suggestions, ideas?I'm getting my data for my list from the database, but i didn't put it in here.
My helperlist looks something like this:
private function initList()
{
$this->fields_list = array(
'id_category' => array(
'title' => $this->l('Id'),
'width' => 140,
'type' => 'text',
),
'name' => array(
'title' => $this->l('Name'),
'width' => 140,
'type' => 'image',
'image' => 'localhost/prestashop/themes/default/images/',
'image_id' => 'test.jpg',
),
);
$helper = new HelperList();
$helper->shopLinkType = '';
$helper->simple_header = true;
// Actions to be displayed in the "Actions" column
$helper->actions = array('edit', 'delete', 'view');
$helper->identifier = 'id_category';
$helper->show_toolbar = true;
$helper->title = 'HelperList';
$helper->table = $this->name.'_categories';
$helper->token = Tools::getAdminTokenLite('AdminModules');
$helper->currentIndex = AdminController::$currentIndex.'&configure='.$this->name;
return $helper;
}
Thank you very much!