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.
Hello,
I have created a special set of default meta tags for a certain content type on my site. It was found that if I re-define let's say "Description" meta tag in "Content: type" it will not work until I make "Description" meta tag empty for "Content" defaults.
Is it a "works as expected"?
I thought that configs for a specific content type should have a higher priority over general content type.
Backup:
"Content"
$config = new stdClass;
$config->disabled = FALSE; /* Edit this to true to make a default config disabled initially */
$config->api_version = 1;
$config->cid = '3';
$config->instance = 'node';
$config->config = array(
'description' => array(
'value' => '[node:summary]',
),
'title' => array(
'value' => '[node:title] | [site:name]',
),
);
"Content: type"
$config = new stdClass;
$config->disabled = FALSE; /* Edit this to true to make a default config disabled initially */
$config->api_version = 1;
$config->cid = '2';
$config->instance = 'node:map_obj';
$config->config = array(
'description' => array(
'value' => '[node:field_brief_descr]',
),
);
Comments
Comment #1
DamienMcKennaI believe this may have been a symptom of #1784896: Overriding meta tags fall back to parent default tag value.