Is there a way to import a csv file into a (default) page and have it rendered as a table?
The 'table-importer' plugin (which is not maintained anymore) does not work on my Grav v1.7.41 site.
Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
Is there a way to import a csv file into a (default) page and have it rendered as a table?
The 'table-importer' plugin (which is not maintained anymore) does not work on my Grav v1.7.41 site.
If you have a custom Plugin (Custom Plugin tutorial) in your project, you could try to write a function which takes the CSV and converts it to a list of objects which you can use in your twig template (I think there should be one which is used to export flex-objects to CSV Formatter).
I don't know if you can convert your CSV into a flex-directory and use it in your templates as flex-objects.
I'm not 100% sure, these are just some ideas on how it could be done
Log in to reply.
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 2 | 47 | 1 week ago | ||
| 2 | 56 | 4 weeks ago | ||
| 3 | 1182 | 1 month ago | ||
| 1 | 50 | 1 month ago | ||
| 3 | 74 | 2 months ago |