Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow node: tokens on the Global: Homepage replacements #82

Open
catorghans opened this issue Feb 19, 2022 · 0 comments
Open

Allow node: tokens on the Global: Homepage replacements #82

catorghans opened this issue Feb 19, 2022 · 0 comments

Comments

@catorghans
Copy link

When the frontpage is a node then with current version of metatag you can not use node: tokens in the metatags.
Because metatag does not use Content config on the frontpage and in the Global:Homepage you can not use node tokens.

My proposal would be:
remove the else { } from

  // Load any meta tags assigned via metatag_page_set_metatags(). Note: this
  // must include the necessary defaults.
  else {
    $tags += metatag_page_get_metatags($instance);
  }

(line 1799 of metatag.module)

Then it will use both the Global:Homepage settings as well as the Content metatag settings if both are available.
But it is also possible I misunderstand the module?

@quicksketch quicksketch changed the title frontpage and node Allow node: tokens on the Global: Homepage replacements Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants