Text and Full Text Content

Display native text columns with full array configuration and optional full-text presentation.

Arrays are the newer full, extensible configuration and are preferred for new definitions. Strings remain compatible legacy shorthand/quick syntax. Option keys are specific to each native field type.

Add a matching header and a field whose col is selected by the owning query:

$td_titles = ['NAME'];
$td_fields = [];
array_push($td_fields, [
    'type' => 'text',
    'col' => 'NAME',
    'fulltext' => true,
    'showHTML' => false,
    'copy' => false,
    'privilege' => 1
]);

type defaults to text. fulltext defaults to false and controls whether the text is shown in full. showHTML defaults to false; enable it only for deliberately trusted HTML. copy defaults to false and adds native copying where supported. privilege defaults to 1 and controls presentation, not server authorization.

Other supported presentation keys include class, attributes, title and icon. nl2br follows the page setting unless explicitly supplied. Supply the actual column name and escape dynamic HTML values appropriately.

Legacy quick examples such as 'NAME' and 'text:NAME' remain supported. Prefer the full array when adding options. Monetary numbers should stay numeric and use the native price formatter rather than HTML-formatted accounting strings.