When global metatags are available, panel pages will never pick those up if

  • The metatag is not enabled per variant
  • The values on the variant are the same as the global defaults

Especially the second one has caused me some time to figure out what was going on here.
One could argue that for the first case, the current situation is ok. On the other hand, globals are configured, so why not apply them ? One could also argue that it's kind of pointless to apply defaults if nothing is available in the form.

Anyway, patch coming up that will load the global defaults for both cases.

CommentFileSizeAuthor
#1 2492207-1.patch769 bytesswentel

Comments

swentel’s picture

Status: Active » Needs review
StatusFileSize
new769 bytes
swentel’s picture

Issue summary: View changes
damienmckenna’s picture

Status: Needs review » Needs work

I'm not sure that's the correct way of doing it - it already runs metatag_config_load_with_defaults() later on, so this code would trigger that twice.

FYI I've also created #2495937: Verify that Metatag:Panels works correct w APIs, default configs to do an audit of the Panels integration to confirm it works correctly and consistently with the other submodules.

swentel’s picture

Hmm you're right, it runs twice now which is indeed unnecessary. I'll have a look again over the weekend to see if I can make it run with less overhead.

damienmckenna’s picture

bluegeek9’s picture

Status: Postponed » Closed (outdated)
//www.flaticon.com/free-icons/thank-you Thank you for your contribution!
Unfortunatly Drupal 7 is no longer supported. We encourage you to upgrade to a modern version of Drupal.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.