Releases: distantnative/kirby-csv-field
Releases · distantnative/kirby-csv-field
👩💼 1.1.0 – Pam Beesly
Enhancements
- PHP 8.4 support (thx @bastianallgeier)
Fixes
- CSV preview more reliably (re-)loads in the Panel field
🧑🏫 1.0.0 – Michael Scott
Kirby CMS Panel field to upload and display a single CSV file
- Panel
csv
fielddelimiter
optionlimit
option for paginationcolumns
options to customize the columns
- Field method
->toCsv()
Changes since 1.0.0-beta.3
- Moved pagination and columns computation to the backend for better performance
- Fixed
$csv->columns()
for empty CSV - Improved Vue component code quality
1.0.0-beta.3
Enhancements
- Field method returns new
Csv
class (slightly enhancedCollection
)
<?php if ($csv = $page->myCsvField()->toCsv(';')): ?>
<table>
<thead>
<?php foreach ($csv->columns() as $column): ?>
<th><?= $column ?></th>
<?php endforeach ?>
</thead>
<tbody>
<?php foreach ($csv->rows() as $row): ?>
<tr>
<?php foreach ($row as $cell): ?>
<td><?= $cell ?></td>
<?php endforeach ?>
</tr>
<?php endforeach ?>
</tbody>
</table>
<?php endif ?>
1.0.0-beta.2
Enhancements
limit
option for pagination of table- i18n support for English and German
1.0.0-beta.1
Initial version with
- Panel field
- Field method