Quick Access

How to create a link to quick access an edit page. May require Option Type E

This feature has 2 different ways to implement:

1. Quick Mode

This mode requires the option type E to be enabled. Simply add access: before the column name and then : an icon. This will use the settings assigned to edit and will open the edit page on click to the column value.

$tdvalue = [
  'access:name:<i class="fa fa-arrow-circle-o-right"></i>',
  'email:email',
  'tel'
];
array_push($td_fields,$tdvalue);

 

2.  Array mode

$tdvalue = [
  'type'=>'access',
  'col'=>'name', //column name to show in the table row
  'format' => getPath('BILLING','CLIENTS','EDIT INVOICE','FVUQWCDEPKpa','%ID%').'?other=%COL%', // the format can be anything with any number of wild cards, in this example %ID%, %COL%, etc must match to a column declared in $query
  'icon'=> '<i class="far fa-folder-open"></i> ', //optional this icon is the default
  'title' => translate('Open','Abrir','Ouvrir'), //optional, this is the default value
  'attributes'=>'',  //optional, can be any attribute(s) with value(s) default: none (empty)
  'class' => '' //optional
];
array_push($td_fields,$tdvalue);