Use html_tag in TitleFormatter

Created on 5 June 2023, about 1 year ago
Updated 13 April 2024, 2 months ago

Problem/Motivation

Version 3 of this module has new logic in TitleFormatter - it uses output from the parent formatter and adds prefix/suffix. But in this case there is no proper way of adding attributes to the HTML tag, which is used. For many cases we need to add classes to the h1-h5 elements and with html_tag it's easily possible.

Steps to reproduce

Install and enable module. Add title field to the display of any CT. Try to add class to the tag itself.

Proposed resolution

Bring back using of html_tag type.

Remaining tasks

Review the patch.

πŸ“Œ Task
Status

Postponed: needs info

Version

3.0

Component

Code

Created by

πŸ‡·πŸ‡ΊRussia ilya.no

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024