Allow a page title per view mode page pattern

Created on 5 May 2017, over 7 years ago
Updated 9 September 2024, 3 months ago

Problem/Motivation

Every view_mode_page currently uses the same title as the parent entity. For improved usability and SEO it would be preferable to set a page per view_mode_page. Ideally this page title would support using tokens, so it can be tailored per entity.

Proposed resolution

Add a textfield 'Page title' to the view_mode_page_pattern configuration form that allows tokens. Then apply the generated page title to the view_mode_page.

Remaining tasks

  1. Write a patch
  2. Review
  3. Commit

User interface changes

To be determined.

API changes

To be determined.

Data model changes

To be determined.

✨ Feature request
Status

Needs review

Version

4.0

Component

User interface

Created by

πŸ‡³πŸ‡±Netherlands idebr

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.

  • πŸ‡ΊπŸ‡ΈUnited States jhedstrom Portland, OR

    Processing these as a sub request has additional ramifications around breadcrumbs. For instance, the Easy Breadcrumb module tries to match the path as the canonical one, not the sub path, making the pages have the same breadcrumb as the parent node.

  • Status changed to Needs review 5 months ago
  • πŸ‡ΊπŸ‡ΈUnited States jhedstrom Portland, OR

    This is an attempt at refactoring, it gets the custom title working, but probably has many other ramifications for projects that rely on the sub-request approach. This also works with the aforementioned easy breadcrumb issue. I didn't commit this to the issue fork, as it's more of a PoC for now.

  • πŸ‡ΊπŸ‡ΈUnited States jhedstrom Portland, OR

    Note that the sub-request approach also breaks the canonical url meta tag (which gets set to the parent node, not the sub page).

  • Hi just ran into what we believe to be this exact issue. We have easy breadcrumb looking at pages that are children of view mode pages and the links are just empty paths (the link is there but no title).

    Would love a solution or to help test out this patch if it looks like a viable fix.

Production build 0.71.5 2024