Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Table Field

Security covered Maintenance fixes only 70 sites

This module provides an easy-to-use field for creating and editing static, Excel-like tables directly within Drupal. It supports formatting options and allows for Markdown within table cells, which are then rendered as HTML. The field can store data in native JSON fields when used with the JSON Field module.

Provides an easy to use table field just to edit and display static Excel-like tables.

From 2.0.7, you can even use native JSON typed fields for data storage using the contrib JSON Field module.

This Module makes use from the JS-library "handsontable" to have an editable tables in the backend. It provides formatting options left/right-align, table headers and more.
Inside the table you can not use HTML but you can use MarkDown what will be rendered as HTML.

There are two JS-libraries required by this module: Handsontable and PapaParse. Both will be installed by composer for you.

Module Handsontable Papa Parse league/commonmark 8.x-1.0 0.34 4.1 0.11 2.0 12 5.3 2.4

Install

Before installing the module make sure to set up asset packagist repository in your composer.json manually. More info about that can be read in this Drupal documentation See an example here (in this example the site was installed using drupal/recommended-project with docroot under the "web" folder):

  "repositories": [
        "drupal": {
            "type": "composer",
            "url": "https://packages.drupal.org/8"
        },
        "assets": {
            "type": "composer",
            "url": "https://asset-packagist.org"
        }
  ],
  "require": {
    ...
    "oomphinc/composer-installers-extender": "^2.0",
  }
  "extra": {
        "installer-paths": {
            "web/core": [
                "type:drupal-core"
            ],
            "web/libraries/{$name}": [
                "type:drupal-library",
                "type:bower-asset",
                "type:npm-asset"
            ],
            "web/modules/contrib/{$name}": [
                "type:drupal-module"
            ],
            "web/profiles/contrib/{$name}": [
                "type:drupal-profile"
            ],
            "web/themes/contrib/{$name}": [
                "type:drupal-theme"
            ],
            "drush/Commands/contrib/{$name}": [
                "type:drupal-drush"
            ],
            "web/modules/custom/{$name}": [
                "type:drupal-custom-module"
            ],
            "web/profiles/custom/{$name}": [
                "type:drupal-custom-profile"
            ],
            "web/themes/custom/{$name}": [
                "type:drupal-custom-theme"
            ]
        },
        "installer-types": [
            "bower-asset",
            "npm-asset"
        ],
      ...
    }

Also make sure you have run oomphinc/composer-installers-extender package installed with composer require oomphinc/composer-installers-extender

Now the module can be installed with composer. See the install command at the bottom under Releases.

After this, check if you can find the libraries in the web/libraries/ folder.

Now you can enable the module via UI or drush.

Drupal 9–11

Ask your assistant about Table Field

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • field Drupal core
  • file Drupal core
  • filter Drupal core
  • image Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
4
Tracked since
Jun 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
2.0.8 Stable 9–11 Jun 11, 2024
2.0.7 Stable 9–10 Jun 27, 2023
3.0.x-dev Dev 9–10 Jun 23, 2023
2.0.6 Stable 9–10 Jun 9, 2023