innoweb/silverstripe-social-metadata

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

Installs: 18 821

Dependents: 3

Suggesters: 4

Security: 0

Stars: 4

Watchers: 6

Forks: 6

Open Issues: 0

Type:silverstripe-vendormodule


README

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