ncdigitalsolutions / file_table_formatter
Installs: 1 533
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:drupal-module
Requires
- drupal/core: ^8.8 || ^9
This package is not auto-updated.
Last update: 2025-07-10 12:30:45 UTC
README
This module provides a field formatter that will display the contents of an uploaded file as a table. This allows you easily update table data displayed on a site without importing as nodes or another entity. This module currently only supports CSV-formatted files. ## Installation 1. Copy the file_table_formatter module to modules directory. 2. Enable the module at Administer >> Extend. ## Usage 1. To configure the table formatter on a content type, go to Administer >> Structure >> Content Types. 2. Add a file field to the content type, if necessary, under Manage Fields next to a specific content type. 3. Click Manage Display next to the content type with your file field. 4. Select "Display file contents as a table" from the Format box next to the file field. 5. If your files have a header row, enable this feature by clicking the gear icon and checking the box. 6. Click Save at the bottom of the page. 7. Create a node of the selected type and upload a CSV-formatted file to the field you set the formatter on. When viewing the node, you should see tables displayed in place of file links. 8. To add titles to the tables, use the file Description field.