Should work with HTML title module

Created on 11 December 2023, 7 months ago
Updated 27 December 2023, 6 months ago

Problem/Motivation

There is a module what can enable some HTML element to the node title, and If I use this module and soft_hyphen twig filter on the same display mode the HTML elements are printed as a text.

Steps to reproduce

  1. Install https://www.drupal.org/project/html_title β†’ module
  2. Install https://www.drupal.org/project/soft_hyphen β†’ module
  3. use the current teaser or create a new display mode for your node type
  4. set the title format settings to "HTML-title text"
  5. set some HTML element to the HTML-title modul settings page, etc <sub><sup>, /admin/config/user-interface/html_title
  6. create a node, with these HTML elements
  7. create a node display twig template
  8. print the title as {{ node.title|shy }}and it will be printed as a text (with shy elements)
  9. print the title as {{ label }} and the title will be printed with HTML-title module but without shy element

Currently the module input is only a string, but {{ label }} is not a string.

Proposed resolution

The {{ label|shy}} should work and it is printed as a string with HTML-title outputsettings.

User interface changes

none

API changes

none

Data model changes

none

✨ Feature request
Status

Closed: cannot reproduce

Version

1.0

Component

Code

Created by

πŸ‡­πŸ‡ΊHungary csakiistvan

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

Comments & Activities

Production build 0.69.0 2024