Give option to customize the default empty value

Created on 26 February 2025, about 1 month ago

Problem/Motivation

The Tablefield module currently does not allow administrators to configure default text output when a cell in a table is left empty by the user. This lack of functionality results in blank cells in the table, which can be problematic for content presentation and user experience.

Steps to reproduce

  1. Install the Tablefield module and create a table field.
  2. Use a CKEditor to enter content into some cells of the table.
  3. Leave some cells empty while creating content.
  4. Save the content.
  5. Observe that the empty cells appear blank on the front-end.

Proposed resolution

A patch has been developed to allow administrators to configure default text output for empty cells in a Tablefield. The configuration can be done through the TablefieldFormatter settings, where administrators can specify a default value that will be displayed when a table cell is left empty. This default content will appear on the front-end instead of the cell being empty.

User interface changes

The TablefieldFormatter settings page will include a new option where the administrator can specify the default text to be displayed in empty cells. This option will be presented as a text area field with a description of how it functions.

Feature request
Status

Active

Version

3.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024