ragi96/table-field
最新稳定版本:1.1.3
Composer 安装命令:
composer require ragi96/table-field
包简介
Table-Field is a kirby 3 field plugin to make nice extendable tables
README 文档
README
Kirby table-field
A Table Field for Kirby V3
Usage
As any Kirby field:
fields: table: label: table type: table maxColumns: 5 minColumns: 2
Options are not required. Defaults are:
maxColumns: 5 minColumns: 2
Content is structured like an yaml array
In your template you can simply use the function toTable()
Example:
<?php $table = $data->table()->toTable(); ?> <?php if($table != null): ?> <table> <?php foreach ($table as $tableRow): ?> <tr> <?php foreach ($tableRow as $tableCell): ?> <td><?= $tableCell; ?></td> <?php endforeach; ?> </tr> <?php endforeach; ?> </table> <?php endif; ?>
Installation
To install the plugin, please put it in the site/plugins directory.
The field folder must be named table-field.
Download
Link to latest version https://github.com/ragi96/table-field/releases/latest
With Git
git clone https://github.com/ragi96/table-field/releases.git table-field
Composer
Composer require ragi96/table-field
统计信息
- 总下载量: 14.46k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 22
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-02-24
