metatags don't show for custom content type with existing metatags

Created on 4 December 2024, 18 days ago

Problem/Motivation

The additional metatags provided by this module does not show up for existing custom content types that have existing metatags! I did some debugging and here are some additional info:

  1. the additional metatags show up fine for global and content types (see attached global.png), both of which have existing metatags that i added
  2. the additional metatags also show up if i add another existing content type that didn't previously have metatags
  3. i delete 1 of the 3 custom content types, cleared the cache, recreated the custom content type and still the additional metatags didn't show

Steps to reproduce

  1. Created 3 custom content types
  2. Installed and enable the Metatag module
  3. Added metatags for the 3 custom content types
  4. Installed and enabled this module and some submodules
  5. Wasn't able to see the additional metatags provided by this module for the 3 custom content types @ /admin/config/search/metatag (see attached existing_content_type.png)
🐛 Bug report
Status

Active

Version

3.0

Component

User interface

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @monaw
  • ok, i just did a bit more debugging:

    1. started a new site (test) with our 3 custom content types and no Metatag nor this module
    2. installed this module (which brought in the Metatag module)
    3. enabled the same modules as my previous site (named schemaorg-metadata)
    4. went to create new default metatags for 1 of our custom content types (event) and the additional metatags from this modules show up (see attached works.png)
  • also i want to show what happens in my original schemaorg-metadata site for the same event content type which had existing metatags and i deleted the entire content type so i can try again, when i initially go to /admin/config/search/metatag/add, i see the listing of of metatags which includes the additional ones provided by this module (see before.png) but then when i select the Event type, the additional metatags options disappear (see after.png)! So it seems the data in the database wasn't cleared; is there a way to clear the metatags for an existing content type so i can start over setting the metatags?

Production build 0.71.5 2024