The option type for table views is V, the manual value is:
$options['view'] = true; // false disables View support
Example of a Table View with only Edit (E) and Delete (D) option types :
$PAGES_CONTENT->setOption("PAGES,VER PAGINAS,VOIR PAGES","aside","5","VED", true);
Once the section is created and we have to create the page "PAGES.php" where PAGES is the name that is assigned to this page.
Inside your php file you will need the following minimum requirements:
Page Title:
$case_title = translate('TITLE ENGLISH','TITLE SPANISH', 'TITLE FRENCH');
Data Base info, table name and table id column name:
$dbtable = "PAGE"; $idfield = "PID";
Table Titles (array):
$td_titles = [ ];
Table fields (array):
$td_fields = [];
Query (string) using %%WHERE%% and addwhere function to set the conditions :
addwhere("CLID = '$idvalue'"); // optional
$query = "Select * from $dbtable %%WHERE%%";
Include the table View file:
include("core/table_view.php");
Current Core clarification
Include the primary-key column in the SELECT when using live fields; Core uses $idfield and each row's key to build the update descriptor. Declare a matching $td_titles and $td_fields entry for each column. For live color fields enable L and H as well as V; see Live Table Color Picker.