brotkrueml / schema

TYPO3 extension providing an API and view helpers for schema.org markup

Home Page:https://extensions.typo3.org/extension/schema

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use @graph with multiple types on root level

brotkrueml opened this issue · comments

When embedding multiple schema types on the root level of a page, the @graph property can be used. This is considered equal to use an array of types or multiple script tags. The advantage of @graph is, that the context must be used only once, so the JSON-LD string is smaller - especially with many many types on a page.

Acceptance criteria:

  • If only one type on root level is available, this type is embedded as previously.
  • If more than on type on the root lebel are available, the @graph annotation is used to group them together.
  • The documentation is adjusted (if applicable).

Resources: