Allow using the entity label of the next / previous links as link title tags

Created on 2 September 2024, 3 months ago
Updated 3 September 2024, 3 months ago

Postponed on Provide the entity (object) instead of the ID in the twig template for more flexibility Active

Problem/Motivation

Allow using the entity label of the next / previous links as link title tags. Maybe as global setting on the settings page?

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Postponed

Version

3.0

Component

Code

Created by

🇩🇪Germany Anybody Porta Westfalica

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

Merge Requests

Comments & Activities

  • Issue created by @Anybody
  • Status changed to Postponed 3 months ago
  • 🇩🇪Germany Anybody Porta Westfalica

    Postponed on Provide the entity (object) instead of the ID in the twig template for more flexibility Active which should make this easily solvable just in the twig template!

  • Merge request !35Get entity label → (Open) created by Anybody
  • 🇩🇪Germany Anybody Porta Westfalica

    The MR is just to give an idea so far. I don't think we can call label() in twig that way...

  • Pipeline finished with Success
    3 months ago
    Total: 134s
    #271807
  • 🇬🇧United Kingdom AndyF

    I think the entity added by the current MR in Provide the entity (object) instead of the ID in the twig template for more flexibility Active is the entity the links are on, not the entity the links are pointing to, so I'm not sure this would work? (I haven't tested it, so possibly just missing something.)

    Also it would be important to consider cacheability metadata: if using the linked entity's title, we'd want to add the linked entity as a cacheable dependency, so if the entity's title is updated, the stale cache item won't get used.

  • 🇩🇪Germany Anybody Porta Westfalica

    Thanks @andyf - indeed that was a very quick shot, I'll take more time, once I see some maintainer activity here. Seems unclear, if this is actively maintained?

    Did you consider to become co-maintainer? You seem more active!

  • 🇬🇧United Kingdom AndyF

    I'm not sure how actively it's maintained, but it's not abandoned. I'm using it on the one site, which is where the sudden activity came from. I'd be happy to be a maintainer at least while I'm supporting that site if that would help out the current maintainers, but very happy just to work in the issue queue.

Production build 0.71.5 2024