1

All content is generated via CMS widgets. As a result the article structured data is generated via a separate widget to the authors. Is there some way I could link the two snippets together?

Example shortened for brevity:

<script type="application/ld+json">
    {
      "@context": "http://schema.org",
      "@type": "NewsArticle",

      "author": "Reference below snippet"
    }
</script>


<script type="application/ld+json">
    {
      "@context": "http://schema.org",
      "@type": "Person",
      // this is the person i want to be the author for the above article snippet

    }
</script>
1
  • What's the CMS you're using? Commented Nov 8, 2019 at 16:48

1 Answer 1

2

You can have separate entities merge if you give them the same @id

<script type="application/ld+json">
    {
      "@context": "http://schema.org",
      "@type": "NewsArticle",
      "author": {"@id": "#Author"}
    }
</script>
<script type="application/ld+json">
    {
      "@context": "http://schema.org",
      "@type": "Person",
      "@id": "#Author"
      // this is the person i want to be the author for the above article snippet
    }
</script>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.