General information for future releases & layout_builder

Created on 10 April 2022, about 2 years ago
Updated 19 June 2024, 9 days ago

When trying this module in combination with layout_builder, I found out the current concept of this module doesn't fit well for the future.

I think instead of creating future releases with layout_builder compatibility, we should better:
a) Create a module which allows setting prefix / suffix (or token) values on field display. This would allow entering the suffix per display mode individually and wouldn't limit this to the (page) title field. Instead, you would set the prefix / suffix in the display modes (e.g. default, full, ... on the field) in layout_builder or not, where you need it.

This would be similar to how for example fences adds wrappers around the field, but for prefix / suffix strings.

Things to keep in mind for that plan:

  • Translatability
  • Token replacement
  • Reusability for different view modes?

b) Keep the module as-is and tell the users, that this isn't well compatible with layout_builder. Instead, they should add custom blocks in layout builder before or after the title field.

We should check how to alter the page title (for different entities) most flexible and correctly.

Our goal is to make the page title (h1) differ from the entity label!

Some references:

Another option would be something like this, but we'd need to check if it works with all entity types, layout builder, etc.: https://www.drupal.org/project/title_field_for_manage_display β†’

🌱 Plan
Status

Postponed

Version

2.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

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024