jinjie/structureddata

StructuredData for SilverStripe 4

Installs: 215

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 3

Open Issues: 0

Type:silverstripe-vendormodule

v1.0.0 2023-07-12 10:00 UTC

This package is auto-updated.

Last update: 2024-12-12 13:08:34 UTC


README

Installation

composer require jinjie/structureddata

How to use

Add the following to mysite.yml

SilverStripe\CMS\Model\SiteTree:
  extensions:
    - StructuredData\Extensions\StructuredDataExtension

Flush!

Define your data

Check out https://github.com/spatie/schema-org for documentation

public function getStructuredSchemaData() {
    $organization = new Organization();
    $organization
        ->name('Swift DevLabs');

    return $organization;
}