Document that this only works for the page title, not for entity labels printed in twig

Created on 14 August 2024, 3 months ago
Updated 27 August 2024, 3 months ago

Problem/Motivation

Using stark theme, the functionality works as expected and the configured page title is shown.

Using our custom theme, which outputs the title through taxonomy-term.html.twig for example, the original page title / entity label is shown.

We need to figure out what's the reason and document this on the module page and in the README, if it can't be fixed.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

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

  • Issue created by @Anybody
  • 🇩🇪Germany Anybody Porta Westfalica

    Clarified the title. By that clarification it seems just correct and expected. If someone uses the entity title instead of the page title, it should just work like that.

    So if you run into this, don't use the entity title if you want the page title ;)

  • Issue was unassigned.
  • 🇩🇪Germany Anybody Porta Westfalica
  • One possible workaround is, to use Twig Tweaks drupal_region() helper function to print the 'page_title'-region (if the theme has one). Twig Tweaks drupal_block() should also work.

    This workaround might lead to caching conflicts, we'll see ...

Production build 0.71.5 2024