craftcms / craftcms/cms

Limited formatting in tables

Open
#3,386 12 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

content modeling :notebook:
Dominant language
PHP
Stars
3.6k
Forks
705
Avg merge
1d 5h
Merged PRs (30d)
134

Description

I know it's been stated that if you need formatting in tables, it should be a Matrix field. Unfortunately Matrix isn't exactly compact when it comes to a lot of data. Take this table for example: https://d.pr/i/r4TH9y

That much data would take up loads of screen real estate and be a pain for a client to enter efficiently. So a Table field works best.

In the heading row (which I'd create with the Table Maker plugin), you'll see superscript and subscript text. That is the kind of formatting that would be great to have in tables. For now I'm having to write out the HTML code, which is fine for just headers, but if it were data, that wouldn't exactly be fun, easy or efficient for clients.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the Table field and the Matrix comparison described in the issue, along with the Table Maker plugin context. Confirm how superscript and subscript are currently entered as HTML and define the supported formatting scope for table headers and data. Done means clients can enter the requested formatting in Table fields without manually writing HTML.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
content
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.