New fieldtype Table
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>