Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

This module provides a field formatter to display the contents of CSV files as a table. It allows you to easily manage and display tabular data directly within your Drupal site without needing to import it as nodes or other entities.

This module provides a field formatter that will display the contents of an uploaded file as a table. This allows you easily display and update table data on a site without importing as nodes or another entity. This module currently only supports CSV-formatted files.

This module can optionally be used with the DataTables module (https://drupal.org/project/datatables) to provide javascript client-side sorting of the generated tables.

Installation

  1. Copy the file_table_formatter module to sites/all/modules directory.
  2. Enable the module at Administer >> Modules.

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.

To enable javascript sorting of tables:

  1. Download and install the DataTables module.
  2. Go to Manage Display for the content type with the file field you want to format.
  3. Click the gear next the field and check the "Use javascript sortable data tables" box.
  4. Click Save at the bottom of the page.

NOTE: DataTables tables with this formatter default to disabling pagination
and a default sorting column. To enable these, override the
theme_file_table_formatter_table() function in your theme.

Drupal 8+ Version

It works, but does not have DataTables support. It can be added once the DataTables module is updated: https://www.drupal.org/node/2393345.

Activity

Total releases
1
First release
Mar 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Release date
2.0.2 Stable Mar 17, 2025