augustash / custom_schema_override
Provides a custom JSON-LD field in the metatag sidebar that overrides schema_metatag structured data output when populated..
Package info
github.com/augustash/drupal-custom-schema-override
Type:drupal-module
pkg:composer/augustash/custom_schema_override
1.0.0
2026-07-16 19:51 UTC
Requires
- drupal/core: ^10 || ^11
This package is auto-updated.
Last update: 2026-07-16 19:52:35 UTC
README
- Provides a custom JSON-LD field in the metatag sidebar that overrides schema_metatag structured data output when populated.
- Requires the use of the Drupal Metatag module along with the Drupal Schema Metatag module
- Metatag only shows a group on a bundle's edit form if that bundle has no visible-groups restriction configured, or if the group is explicitly listed in its restriction. Bundles with no restriction already show all groups, including "Schema JSON Override," and need no action.
- If a site has already restricted a bundle's visible groups (
admin/config/search/metatag/settings) before this module is installed,hook_install()enables "Schema JSON Override" for those bundles automatically as a one-time pass. Rundrush config:exportafter installing/updating this module so that change is captured in the repo -- otherwise a laterdrush config:importwill silently revert it. This sync only runs at install; it does not run again for bundles created afterwards. - As a safety net, the module also reports a warning on the Status Report (and during
drush updb) listing any restricted bundle still missing the group -- e.g. if the post-install export was skipped, or a later config import reverted it. Enable it manually on the settings form, then rundrush config:export, to clear the warning.