Skip to content

A Silverstripe module for conveniently injecting JSON-LD structured data SiteTree pages and DataObjects rendered by controllers.

License

Notifications You must be signed in to change notification settings

LoveDuckie/silverstripe-json-ld-structured-data

silverstripe-json-ld-structured-data

A SilverStripe module for conveniently injecting JSON-LD metadata into the header of each rendered page in SilverStripe.

For more information on "JSON-LD structured data", please refer to the Google Developer pages.

https://lucshelton.com/projects/personal/silverstripe-json-ld-structed-data-module/

Installation

composer require loveduckie/silverstripe-json-ld-structured-data 4.x-dev

Requirements

  • SilverStripe ^4.0
  • Yarn, NodeJS (6.x) and npm (for building frontend assets)

Maintainers

Documentation

Configuration

The extensions in this module will automatically inject itself into the SiteTree type. Refer to the adopted configuration below.

---
Name: silverstripe-json-ld-structured-data
---
SilverStripe\CMS\Model\SiteTree:
  extensions:
    - LoveDuckie\SilverStripe\Extensions\JsonLDStructuredDataExtension

License

See License

Bugtracker

If the issue does look like a new bug:

  • Create a new issue
  • Describe the steps required to reproduce your issue, and the expected outcome. Unit tests, screenshots and screencasts can help here.
  • Describe your environment as detailed as possible: SilverStripe version, Browser, PHP version, Operating System, any installed SilverStripe modules.

Please report security issues to the module maintainers directly. Please don't file security issues in the bugtracker.

Development and contribution

If you would like to make contributions to the module please ensure you raise a pull request and discuss with the module maintainers.