jinjie/structureddata

StructuredData for SilverStripe 4

Installs: 12

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:silverstripe-vendormodule

dev-master 2020-03-17 10:32 UTC

This package is auto-updated.

Last update: 2021-05-17 13:22:07 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;
}