Links

Table Views can display information from the database, but can also display other information like links to external pages, and these links can be built using values from the data base as well.

A native Table View link uses an actual selected URL column or a page-owned format. No extra option letter is required beyond the owning Table View. Select every column referenced by the field, keep one header per field and authorize the target independently.

Full arrays are the modern extensible configuration. Strings remain supported legacy shorthand/quick syntax. Prefer full arrays for new definitions; use only keys supported by the owning field or component.

$td_titles = [['name'=>'DOCUMENT','width'=>200]];
$td_fields = [[
    'type'=>'link', 'col'=>'DOCUMENT_URL', 'text'=>'DOCUMENT_NAME',
    'title'=>'DOCUMENT_NAME', 'plainText'=>false,
    'toURL'=>false, 'target'=>'_blank'
]];

Column names are placeholders for the owning schema. plainText=false reads text/title from selected columns; true uses literal labels. The default target is _blank. toURL defaults to false and applies native slug cleaning when true; it is not a general URL-security validator. Keep it false for an already complete URL. Other supported presentation keys include privilege, icon, class and attributes.

Build a native route

$td_fields[] = [
    'type'=>'link',
    'format'=>getPath('CATALOG','ITEMS','EDIT ITEM','FU','%ITEM_ID%'),
    'plainText'=>true, 'text'=>'Open item', 'title'=>'Open item',
    'target'=>'_self', 'toURL'=>false
];

Use actual registered names and select ITEM_ID. Percent-delimited wildcards are replaced from that row. With format, col is not required.

Encrypted values and multiple links

$td_fields[] = [
    'type'=>'link', 'format'=>'details.php?item=%ITEM_ID%',
    'encrypt'=>['ITEM_ID'], 'plainText'=>true,
    'text'=>'Details', 'title'=>'Details', 'toURL'=>false
];

details.php is an application-owned placeholder endpoint, not a built-in route. encrypt accepts a selected-column array or comma-separated string. The destination must decrypt, validate and authorize its input; encryption alone grants no access. Do not put confidential payloads into ordinary URLs.

The renderer also supports comma-separated labels and corresponding format/wildcard values for several links in one cell. Select aligned values in deterministic order; single values are shared, and literal commas in labels conflict with this format. For ordinary single links prefer the complete arrays above. Legacy link:format:text shorthand remains supported with its delimiter limitations.