Hello,
I have a Helperlist rendered, and for each clickable row I would like to have a redirection to an external page, or do this by clicking on the 'view' action. The next code displays a sample list, how can I go to the external link after clicking to one of the table elements. Thanks in advance
public function MyList()
{
$content = array(
array(
'id' => 1,
'SKU' => 153,
'Name' => 'Test1',
),
array(
'id' => 2,
'SKU' => 154,
'Name' => 'Test2',
),
array(
'id' => 3,
'SKU' => 155,
'Name' => 'Test3',
),
);
$fields_list = array(
'id' => array(
'title' => 'ID',
'align' => 'center',
'class' => 'fixed-width-xs',
),
'SKU' => array(
'title' => 'SKU',
'align' => 'center',
'class' => 'fixed-width-md',
),
'Name' => array(
'title' => 'Name',
'align' => 'center',
'class' => 'fixed-width-md',
),
);
$helper = new HelperList();
$helper->shopLinkType = '';
$helper->simple_header = false;
$helper->actions = array();
$helper->show_toolbar = false;
$helper->module = $this;
$helper->listTotal = count($content);
$helper->identifier = 'List Test';
$helper->title = 'List ';
$helper->actions = array('view');
$helper->table = $this->name;
$helper->token = Tools::getAdminTokenLite('AdminModules');
$helper->currentIndex = AdminController::$currentIndex.'&configure='.$this->name;
return $helper->generateList($content, $fields_list);
}