2017 © Pedro Peláez
 

silverstripe-module silverstripe-metadescription-fallback

A SiteTree extension providing a mechanism to populate meta description header from content fields when MetaDescription is empty

image

chrometoaster/silverstripe-metadescription-fallback

A SiteTree extension providing a mechanism to populate meta description header from content fields when MetaDescription is empty

  • Friday, July 14, 2017
  • by michalkleiner
  • Repository
  • 6 Watchers
  • 0 Stars
  • 959 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 5 Versions
  • 10 % Grown

The README.md

SilverStripe MetaDescription Fallback

Requirements

  • SilverStripe 4.0 and above
  • PHP 5.6 and above

Maintainers

  • michal.kleiner@chrometoaster.com
  • doug.mckechie@chrometoaster.com

Description

This module applies a data extension to SiteTree providing a mechanism to populate meta description header from a defined set of content fields when the default MetaDescription is empty., (*1)

The list can use names of fields, names of methods or leverage the the dot notation to reference relations or methods, as outlined in the configuration example below., (*2)

Use with Dataobjects

The extension this module provides can also be applied to dataobjects, for example if you are outputting them as pages and need meta tags included in the source of the page., (*3)

In this case the MetadataTagsTrait also needs to be used by those dataobjects., (*4)

Installation with Composer

composer require "chrometoaster/silverstripe-metadescription-fallback"

Example configuration

In your config.yml, define the list of fields:, (*5)

Chrometoaster\SEO\DataExtensions\MetaDescriptionFallbackExtension:
  fallback_fields:
    - Description
    - Introduction
    - Content.Summary
    - RelatedPages.First.MetaDescription

Run dev/build either via opening the url http://<your-host>/dev/build in a browser or by running the dev/build task using CLI., (*6)

Reporting Issues

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

Changelog

For details of updates, bugfixes, and features, please see the changelog., (*8)

TODO

  • Add unit tests for fallback mechanism.

The Versions

14/07 2017

dev-master

9999999-dev http://github.com/chrometoasters/silverstripe-metadescription-fallback

A SiteTree extension providing a mechanism to populate meta description header from content fields when MetaDescription is empty

  Sources   Download

BSD-3-Clause

The Requires

 

by Michal Kleiner

cms silverstripe seo meta

14/07 2017

1.0.2

1.0.2.0 http://github.com/chrometoasters/silverstripe-metadescription-fallback

A SiteTree extension providing a mechanism to populate meta description header from content fields when MetaDescription is empty

  Sources   Download

BSD-3-Clause

The Requires

 

by Michal Kleiner

cms silverstripe seo meta

12/07 2017

dev-bug/strip_tags

dev-bug/strip_tags http://github.com/chrometoasters/silverstripe-metadescription-fallback

A SiteTree extension providing a mechanism to populate meta description header from content fields when MetaDescription is empty

  Sources   Download

BSD-3-Clause

The Requires

 

by Michal Kleiner

cms silverstripe seo meta

02/06 2017

1.0.1

1.0.1.0 http://github.com/chrometoasters/silverstripe-metadescription-fallback

A SiteTree extension providing a mechanism to populate meta description header from content fields when MetaDescription is empty

  Sources   Download

BSD-3-Clause

The Requires

 

by Michal Kleiner

cms silverstripe seo meta

11/04 2017

1.0.0

1.0.0.0 http://github.com/chrometoasters/silverstripe-metadescription-fallback

A SiteTree extension providing a mechanism to populate meta description header from content fields when MetaDescription is empty

  Sources   Download

BSD-3-Clause

The Requires

 

by Michal Kleiner

cms silverstripe seo meta