Craft 3 Documentation

Table Fields

Table fields give you a customizable table, where you can create multiple rows of content.

Settings #

Table fields have the following settings:

The Field #

Table fields will show the table as configured based on the field settings. You can reorder, delete, and add new rows, and modify their values.

Templating #

Calling a Table field in your templates will return an array of the rows. Each row is a sub-array which holds each of the columns’ values for that row.

{% if entry.whiskeyTableHandle|length %}
    <h3>Whiskeys</h3>

    <ul>
        {% for row in entry.whiskeyTableHandle %}
            <li>{{ row.whiskey }} - {{ row.description }} - {{ row.proof }}</li>
        {% endfor %}
    </ul>
{% endif %}