Skip to content

Adds social metadata like OpenGraph, Twitter and JSON-LD to all pages.

License

Notifications You must be signed in to change notification settings

xini/silverstripe-social-metadata

Silverstripe Social Metadata

Version License

Overview

Adds social metadata like OpenGraph, X (Twitter) and JSON-LD to all pages.

The module adds the following functionality to a site:

  • adds meta title fields for all pages to override the default 'page title - site title' title structure
  • adds canonical url to the meta data of each page which can be overridden for each page, for example for blog posts re-published from external sources
  • adds type, locations, opening hours, address, location, logo and image for schema.org JSON-LD data of the site
  • supports single site as well as multisites and configured-multisites setups and adds the config options to the Sites instead of SiteConfig
  • supports the blog module and handles the canonical url as well as custom meta titles and descriptions for tags and categories. It also adds JSON-LD for blog posts
  • pages can extend the functionality and add their own data to the JSON-LD etc

Requirements

  • Silverstripe CMS 5

Note: this version is compatible with Silverstripe 5. For Silverstripe 4, please see the 7.x release line For Silverstripe 3, please see the 3.x release line.

Installation

Install the module using composer:

composer require innoweb/silverstripe-social-metadata dev-master

Then run dev/build.

Configuration

The module adds a new tab to the SiteConfig in the CMS where all the metadata can be configured.

License

BSD 3-Clause License, see License

About

Adds social metadata like OpenGraph, Twitter and JSON-LD to all pages.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages