Add the following to your composer.json file
{
"require": {
"cyber-duck/silverstripe-seo": "1.0.*"
}
}
In your config.yml file add the SEO extension to your Page object
Page:
extensions:
- SEO_Extension
Next add the SEO::init() function to your Page Controller init function and also add the MetaTags method to the Page Controller.
class Page_Controller extends ContentController {
public function init()
{
parent::init();
SEO::init();
}
public function MetaTags()
{
return SEO::HeadTags();
}
}
Run dev/build and flush to initialise the module
Next: Meta