Almost EVERYONE who tried headless systems said they saw benefits. Download the state of CMS now!

Storyblok now on AWS Marketplace: Read more

O’Reilly Report: Decoupled Applications and Composable Web Architectures - Download Now

Empower your teams & get a 582% ROI: See Storyblok's CMS in action

Skip to main content
  • Section titled New fieldtype Table New fieldtype Table

    Changes in: appapimapi

    We are happy to announce the new field type "Table" which gives you an easy to use interface to manage tabular data.

    Following an example of how to render a table from the data of the table field type:

    <table>
      <thead>
        <tr>
          {%- for th in blok.table.thead -%}
            <th>{{ th.value }}</th>
          {%- endfor -%}
        </tr>
      </thead>
      <tbody>
        {%- for tr in blok.table.tbody -%}
          <tr>
            {%- for td in tr.body -%}
              <td>{{ td.value }}</td>
            {%- endfor -%}
          </tr>
        {%- endfor -%}
      </tbody>
    </table>