Allow format any text field (string and string_long)

Created on 14 June 2023, over 1 year ago
Updated 10 March 2024, 9 months ago

Problem/Motivation

I think will be useful allow format any text field.

Steps to reproduce

n/a

Proposed resolution

Create a new field formatter to string and string_long field types.

Remaining tasks

Implement it.

User interface changes

New field formatter to string and string_long field types.

API changes

n/a

Data model changes

n/a

Feature request
Status

Needs work

Version

2.0

Component

Code

Created by

🇪🇸Spain psf_ Huelva

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

Comments & Activities

  • Issue created by @psf_
  • Open on Drupal.org →
    Environment: PHP 8.1 & MySQL 5.7
    last update over 1 year ago
    Not currently mergeable.
  • @psf_ opened merge request.
  • Open in Jenkins → Open on Drupal.org →
    Environment: PHP 8.1 & MySQL 5.7
    last update over 1 year ago
    Checkout Error
  • 🇪🇸Spain psf_ Huelva

    I added a new field formatter, but I think that the old one it's compatible too. I copied the old formatter code, change the field_types and cast values in lines 191 and 192.

  • Issue was unassigned.
  • Status changed to Needs review over 1 year ago
  • Status changed to Needs work 9 months ago
  • 🇳🇱Netherlands watergate

    @psf_ thanks for the contribution!

    I've looked at the merge request, and I'm wondering why we extend the field_types</codes> of the <code>ssch_formatter with your suggestions. And if I'm not mistaken, when these field types are used, there is no language value available, and the highlighting uses the automatic language detection mechanism, but when we do this, we have to point the user to https://github.com/scrivo/highlight.php?tab=readme-ov-file#automatic-lan....

    Now that I have read the automatic language detection mode instructions of the scrivo/highlight.php again, I think it might be better not to provide the user with the option to use "regular text fields" and the one provided in this module. Maybe extending the module's README.md with a note on this automatic language detection mode (and also in the service itself) is better.

Production build 0.71.5 2024