Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Work out how to handle per-path configurations.
The current plan is to merge in the Metatag Routes module.
Comment | File | Size | Author |
---|---|---|---|
#28 | metatag-n2563655-28.patch | 9.94 KB | DamienMcKenna |
|
Comments
Comment #2
DamienMcKennaComment #3
kyuubi CreditAttribution: kyuubi as a volunteer commentedHi,
Just pitching in a bit here in terms of requirements.
I think the main thing is to provide an interface in metatag, same as we have in D7, where site managers can specify metatags based on a url.
The main use case for this is typically around things like views or custom pages, that site managers can't edit as they do nodes, but they still want to control the metadata on them.
I think the interface approach in D7 worked like a charm for this.
Hope this helps, do you have any plans on when we could expect a first release?
Thanks,
Comment #4
DamienMcKennaI have no idea when I'll get to this, it certainly won't be until after 1.0.
Comment #5
kyuubi CreditAttribution: kyuubi as a volunteer commentedHi Damien,
I understand. Is there any workaround you know of until this gets sorted?
Thanks in advance,
Comment #6
DamienMcKennaNot really..
Comment #7
DamienMcKennaWill get to this after 1.0.
Comment #8
DamienMcKenna8.x-1.0 is out, so this is fair game again.
Comment #9
kyuubi CreditAttribution: kyuubi as a volunteer commentedHi Damien,
That's fantastic, I think it's a much needed requirement.
Cheers,
Comment #10
jansete CreditAttribution: jansete commentedIn 7 version this was in Metatag: context submodule, any plans for this feature?
Comment #11
kyuubi CreditAttribution: kyuubi as a volunteer commentedHi guys,
Any news on this front?
Comment #12
iancawthorne CreditAttribution: iancawthorne commentedI think this module covers this functionality:
https://www.drupal.org/project/context_metadata
There is a ticket open to merge it into being a sub module of Metatag here:
https://www.drupal.org/node/1498754
context_metadata is great for consistency from my point of view, as I'm also using context_active_trail which uses the same UI.
Comment #13
DamienMcKennacontext_metadata would have to be rewritten to use Metatag's APIs, right now it does its own thing.
Comment #14
DamienMcKennaFYI I just saw this module show up: https://www.drupal.org/project/metatag_routes
Nice!
Comment #15
asarafraz CreditAttribution: asarafraz commentedThis is an important feature and is highly needed for page--path.html.twig templates. On these pages, it currently shows "page not found" as the page title which would be great to replace it with a meaningful title. I'm surprised that drupal core doesn't provide such feature for page--path templates (or maybe there is such a way but I was not able to find it, please let me know if there is such a way to set the page title in the drupal core for page--path.html.twig templates).
@DamienMcKenna are you suggesting that we should use metatag_routes module or do you plan to integrate it into the metatag module? It seems like the metatag_routes is a great module but I personally prefer to use modules that are covered by Drupal's security advisory policy (it is not covered at the moment). Thank you!
Comment #16
jansete CreditAttribution: jansete commentedAny news or plan about this feature?
Comment #17
jansete CreditAttribution: jansete commentedHow can we help merge https://www.drupal.org/project/metatag_routes or https://www.drupal.org/project/context_metadata to get this behaviour in this module?
Comment #18
jcnventura CreditAttribution: jcnventura at 1xINTERNET commented@DamienMcKenna, I wonder if ever since #3000624: Provide support for all supported metatags (commit at https://git.drupalcode.org/project/context_metadata/commit/52d05ca8fff88...), your comment in #13 about context_metadata doing it's own thing still applies.
Comment #19
dbouman CreditAttribution: dbouman commented+1
Any update on this feature? It would be very useful.
Or are you suggesting we use the https://www.drupal.org/project/metatag_routes module for this functionality?
Comment #20
DamienMcKennaI'm talking about adding https://www.drupal.org/project/metatag_routes to the main Metatag module.
Comment #21
DamienMcKennaComment #22
DamienMcKennaIt might be worth merging the functionality into the main module instead of just adding it as a separate module.
Comment #23
AnybodyGreat idea @DamienMcKenna, just found this issue while I was also searching for a way to set the user/login page to noindex! Same as #3049796: [PP-1] User/login and user/register pages default metatags
So I can say +1 for integrating that contrib module as submodule. Would be nice if that wouldn't be needed extra anymore. I'll ping the maintainer @waldomero :)
Comment #24
joao.ramos.costa CreditAttribution: joao.ramos.costa commentedI'd say +1 to integrate that contrib module. It would be very useful IMO.
Comment #25
DamienMcKennaThis provides a copy of the Metatag Routes module with some slight tidying of the codebase.
Comment #26
DamienMcKennaSome changes after some manual testing.
Comment #28
DamienMcKennaFixed the README.md file.
Comment #29
DamienMcKennaShould we add this to composer.json?
The idea is that it would prevent sites from downloading metatag_routes using Composer, but might it prevent existing sites from updating to this release of Metatag if they already have Metatag Routes installed?
Comment #30
DamienMcKennaI think we should add this to Metatag 2.0, which will give us time to improve the UI and add tests.
Comment #31
DamienMcKennaOr we'll just add it now and improve it as we go.
Comment #33
DamienMcKennaAdding credit to waldomero for all his great work.
Comment #35
DamienMcKennaCommitted. Woot!
Comment #36
AnybodyHey Damien, just wanted to say THANK YOU SO MUCH for adding this! Another big step for Metatags and a really great improvement. Thanks for your time invested here for all of us!