2017 © Pedro Peláez
 

silverstripe-module globalmetadata

Allows setting global MetaTitle and MetaDescription fields that can be overridden on individual pages.

image

room9/globalmetadata

Allows setting global MetaTitle and MetaDescription fields that can be overridden on individual pages.

  • Wednesday, March 1, 2017
  • by Room9
  • Repository
  • 4 Watchers
  • 0 Stars
  • 222 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

SilverStripe Global Metadata Module

This module lets you set a default MetaTitle and MetaDescription in site settings that can be overridden on individual pages., (*1)

Maintainer Contacts

Nathan Cox (nathan@room9.co.nz), (*2)

Requirements

  • SilverStripe 3.2+

Documentation

GitHub, (*3)

Installation Instructions

Unzip into a root folder called globalmetadata and run dev/build., (*4)

Coming soon: composer, (*5)

Usage Overview

If MetaTitle is enabled it adds a field to every page. Then the page's MetaTitle() is called (eg in a template) it will use the value of this field first. If the field is empty it will fall back to the MetaTitle defined in Settings. If that is empty it will use the page's Title. If you're using $MetaTags in the template with show title enabled it will output the title tag using MetaTitle(). Otherwise it can be accessed in templates using $MetaTitle., (*6)

MetaData works the same way as MetaTitle. If a page doesn't have a MetaDescription set then $MetaTags() will output a meta description element containing the default description from Settings., (*7)

Config options:, (*8)

SiteConfig:
  show_meta_title: true                 // turn on/off the meta title fields and behaviour
  show_meta_description: true           // turn on/off the meta description field and behaviour
  meta_title_description: ''            // set text that appears under the default meta title field
  meta_description_description: ''      // set text that appears under the default meta description field

Page:
  meta_title_description: ''            // set text that appears under the page meta title field
  meta_description_description: ''      // set text that appears under the page meta description field

Issues

Please create an issue for any bugs you've found, or features you're missing., (*9)

The Versions

01/03 2017

dev-stable

dev-stable

Allows setting global MetaTitle and MetaDescription fields that can be overridden on individual pages.

  Sources   Download

BSD-3-Clause

The Requires

 

by Nathan Cox

cms silverstripe metadata

01/03 2017

v1.0.0

1.0.0.0

Allows setting global MetaTitle and MetaDescription fields that can be overridden on individual pages.

  Sources   Download

BSD-3-Clause

The Requires

 

by Nathan Cox

cms silverstripe metadata

01/03 2017

dev-release-1.0.0

dev-release-1.0.0

Allows setting global MetaTitle and MetaDescription fields that can be overridden on individual pages.

  Sources   Download

BSD-3-Clause

The Requires

 

by Nathan Cox

cms silverstripe metadata