Do not override the field template (and its classes)

Created on 7 August 2024, 4 months ago

Postponed on 📌 Implement a central point to override the raw page heading (h1) (e.g. hook_page_heading_alter()) Active

Problem/Motivation

Inside Submodule to override the (visible) page title ("metatag_page_title") Active we originally proposed to implement this issue as an official submodule. In development, we found out, that we can't easily override the raw page title, but instead need to overwrite the rendered page title (with all its child elements and classes coming from the theme's twig template). This led us to postpone the issue and implement it as a "dirty" workaround module for now.

Once there is a central point in drupal core, to override the raw page title again, we can continue that issue and see if we can fit it in as an official metatag submodule.
See 📌 Implement a central point to override the raw page heading (h1) (e.g. hook_page_heading_alter()) Active .

Currently, we do all we can after investigating possible solutions for hours!

If someone desperately needs the original title and its classes to be untouched, try node_title_ps module eventually, as it now keeps the original title: Use a multidimensional render array to keep the original title and prefix / suffix it Fixed

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Postponed

Version

1.0

Component

Code

Created by

🇩🇪Germany Anybody Porta Westfalica

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

Comments & Activities

Production build 0.71.5 2024