Provides ability to add Google CSE PageMap data to a SilverStripe template
$ composer require heyday/silverstripe-cse-pagemap:~0.1
class MyPageType extends Page implements CsePageMapInterface
{
public function getPageMap()
{
return array(
'page' => array(
'type' => get_class($this)
)
);
}
}
mysite/_config.php
Object::add_extension('MyPageType', 'CsePageMapExtension');
Page_Head.ss
<head>
<!--
$PageMap
-->
</head>
silverstripe-cse-pagemap/ $ composer install --dev
silverstripe-cse-pagemap/ $ phpunit