Structured data
locales.<lang>.json_ld on every entry is a list of schema.org objects that are ready to use. It is [] when there are none. Each object has @context. Records in GET list and in a shortcode carry their own json_ld too.
What to do
- Write each object as its own
<script type="application/ld+json">, escaped for HTML. - A string that starts with
/, but not with//, is an address on the site. Put your own origin in front of it. - Next to it, write your own
Organization,WebSite,BreadcrumbList, theBlogPostingof a blog post, andFAQPage. For a record whose module has structured data, drop your own guess, such asProduct. - A module with
schema.offered_asmeans that the records are the plans of one product. Write that product once, with thejson_ldof each record as itsoffers.
Where it comes from
- The structured data of a module, filled in per record. It is set under Fields → the module → Structured data.
- Anything a page added itself, under SEO.
- Opening hours, as
site.hours[].json_ld.
Also called: schema markup, rich snippets, JSON-LD, SEO markup.
Last changed