KeyValue Field (PRO)
A two-column grid of key–value pairs. A JsonGrid with its columns fixed.
Settings:
- caption of the key column
- caption of the value column
For anything that is a list of named values and does not deserve its own table: specifications, contacts, parameters of a product.
Output:
html
{foreach $specs as $row}
<dt>{$row.key}</dt>
<dd>{$row.value}</dd>
{/foreach}When to use a table instead
Key–value is right while the rows are only text. As soon as a row needs a second value, an image or its own publishing state, a table is the honest answer — it gives each row real fields instead of a string.