- Issue created by @Anybody
- πΊπΈUnited States DamienMcKenna NH, USA
This is an interesting idea. I haven't ran into the use case for it myself, but that's not to say it isn't valid.
A few questions on the implementation:
- UX - how do you accurately distinguish from the title and the page title in a way that doesn't confuse content admins?
- How much customization would be needed to avoid the page_title plugin from rendering as a meta tag?
- Would any API changes be needed to extract the page_title value for use in the page-title.html.twig?
- π©πͺGermany Anybody Porta Westfalica
Thanks for the rapid feedback @DamienMcKenna!!
We'll elaborate on this and potentially make a first implementation, I guess in a sandbox module, but let's see! I think we can then give better answers on the points rased!
Thank you!!
- πΊπΈUnited States thejimbirch Cape Cod, Massachusetts
I don't see how this is metatag module related as you said, it is not meta data related, will not print in the head.
I have however done similar things. A second field field_h1 and a minor if statement in twig templates would do the trick.
I think the challenge would be to have a content admin look to the metatag field in that admin UI for this. I would think this field should be right next to the title/label field.
- π©πͺGermany Anybody Porta Westfalica
Thanks for the feedback @thejimbirch. I partially agree, but on the other hand I think this is mainly a SEO / Site builder issue, nothing for regular editors in most cases. And as such you'd typically look into the Metatags or learn to do so.
Of course this isn't perfect, but compared to other solutions, I think it's better.
We should place this "Page title" override in its own fieldset within the Metatags area, definitely.Some more notes:
- I've also done custom field implementations to solve this, but I'd like to provide a general solution for this recurring requirement
- I still think it's very close to the Metatag functionality and area
- I'm still open to solve it differently, inspired by metatags
- I think the discussion shows that it propably shouldn't be part of metatag, but be solved in contrib