{const_column:field_id}

Description

Retrieves a column value from the AA Constants/Categories table for the constant identified by the given field's value. Used to look up metadata about a category option — for example, to get its name, value, or class. Syntax: {const_column:field_id} The column suffix determines which column is retrieved from the constants table. Valid suffixes: - {const_name:field_id} — returns the constant's display name - {const_value:field_id} — returns the constant's value - {const_short_id:field_id} — returns the short ID - {const_id:field_id} — returns the numeric ID - {const_pri:field_id} — returns the priority/order - {const_group:field_id} — returns the group - {const_class:field_id} — returns the CSS class - {const_description:field_id} — returns the description - {const_level:field_id} — returns the level in hierarchy Example: {const_name:category.......1} returns the name of the category constant stored in field category.......1. The field_id is a dot-padded 16-character identifier of a category/select field in the current item. The value of that field is used to look up the matching constant record. Useful when displaying the human-readable label of a select/category field instead of the raw constant ID. Implementation: class AA_Stringexpand_Const in stringexpand.php. Status: Active — not deprecated.