Help with SEO structured data

Silverstripe Version: SS5

Question:

I’m using the SilverStripe SEO module GitHub - HelloBetterLTD/seo: SEO plugin SilverStripe · GitHub

Am having trouble using structured data and wondering if anyone else has any pointers?

The following basic .yml config works

---
Name: my-seo-structured
After: '#seo-structured'
---


App\Web\ProductPage:
  schema_type: 'WebPage'
  schema:
    name: 'MetaTitle'
    description: 'MetaDescription'
    url: 'AbsoluteLink'

but I can’t work out how to add more to the schema, eg. I’d expect the following to work, but it doesn’t

App\Web\ProductPage:
  schema_type: 'WebPage'
  schema:
    name: 'MetaTitle'
    description: 'MetaDescription'
    url: 'AbsoluteLink'
    isPartOf:
      '@type': 'WebSite'
      'name': 'Website name'
      'url': 'AbsoluteBaseURL'

Same with trying to add breadcrumbs or anything else more than 1 level deep.

Any tips would be most welcome!

If you can bump to CMS 6, you could look at this module:

Something I built just last week in fact to make the job nice and easy