Advertising sustains the DA. Ads are hidden for members. Join today

Contributed module documentation

Schema.org Metatag

Schema.org Metatag for Drupal 8 & 9 extends the Metatag module to display structured data as JSON-LD in the head of web pages. Either hard-code properties or identify patterns using token replacements. Using the override system in Metatag module you can define default structured data values for all content types, override the global content defaults for a particular content type, or even override everything else on an individual node to provide specific values for that node.

Read more about Schema.org, JSON-LD, and how this module works in an article on Lullabot.com, Create SEO Juice From JSON LD Structured Data in Drupal.

Basic Usage

Use and configuration of Schema.org Metatag module is the same as any other Metatag submodule.

Help With Tokens and Fields

This page is a list of ways to get the desired values into various fields.

Example Article setup

An example of a way to set up an article content type with Schema.org values.

Pivot

There is an option to pivot multiple values. Here's what that means.

JSON-LD, Microdata or RDFa?

There are three primary methods to output structured data on a website - JSON-LD, Microdata and RDFa. Which is best to use?

Schema.org Coverage

The Schema.org list is huge, and growing, so this module only provides a small subset of those values, but it is designed to be extensible.

Developer Instructions for 8.1 Branch

To add more schema types is neither hard nor tedious, so don't be afraid to give it a shot.

Developer Instructions for 8.2 Branch

Details on how to create/edit tags using the 8.2. version of Schema.org Metatag.

Performance Considerations

Follow these simple steps and your site performance when using schema_metatag module should be fine.

Tags

Guide maintainers

christophweber's picture
karens's picture