Skip to content

Latest commit

 

History

History
 
 

installation

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Installation

Composer

Add the following to your composer.json file

{  
    "require": {  
        "cyber-duck/silverstripe-seo": "1.0.*"
    }
}

Extension

In your config.yml file add the SEO extension to your Page object

Page:
  extensions:
    - SEO_Extension

Controller

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