Download the PHP package chrometoaster/silverstripe-metadescription-fallback without Composer
On this page you can find all versions of the php package chrometoaster/silverstripe-metadescription-fallback. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download chrometoaster/silverstripe-metadescription-fallback
More information about chrometoaster/silverstripe-metadescription-fallback
Files in chrometoaster/silverstripe-metadescription-fallback
Package silverstripe-metadescription-fallback
Short Description An extension providing a mechanism to populate meta description header from content fields when MetaDescription is empty
License BSD-3-Clause
Homepage http://github.com/chrometoasters/silverstripe-metadescription-fallback
Informations about the package silverstripe-metadescription-fallback
SilverStripe MetaDescription Fallback
Requirements
- SilverStripe 4.0 and above
- PHP 5.6 and above
Maintainers
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.
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.
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.
In this case the MetadataTagsTrait also needs to be used by those dataobjects.
Installation with Composer
Example configuration
In your config.yml
, define the list of fields:
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.
Reporting Issues
Please create an issue for any bugs you've found, or features you're missing.
Changelog
For details of updates, bugfixes, and features, please see the changelog.
TODO
- Add unit tests for fallback mechanism.