2017 © Pedro Peláez
 

silverstripe-vendormodule silverstripe-meta

Improves silverstripes html meta data options.

image

gorriecoe/silverstripe-meta

Improves silverstripes html meta data options.

  • Monday, May 14, 2018
  • by gorriecoe
  • Repository
  • 1 Watchers
  • 1 Stars
  • 44 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 120 % Grown

The README.md

Silverstripe meta

Improves silverstripes html meta data options., (*1)

Installation

Composer is the recommended way of installing SilverStripe modules., (*2)

composer require gorriecoe/silverstripe-meta

Requirements

  • silverstripe/cms ^4.0

Maintainers

Usage

Add the $MetaTags in the head as you would normally do in SilverStripe. The only difference is that $MetaTags can no longer be passed false to prevent the title tag, (*3)

<head>
    {$MetaTags}
</head>

Modify title tag

If you want to modify title tag, include $meta_data variable with MetaTitle key in your page., (*4)

<?php
class MyPage extends Page
{
    private static $meta_data = [
        'MetaTitle' => [
            'MetaTitle',
            'Title',
            'SiteConfig.MetaTitle'
        ]
    ];
}

In the example above MetaTitle will use data from MetaTitle if found, if not it will fallback to Title and finally fall back to the SiteConfig MetaTitle., (*5)

Other modifiable tags include: MetaTitle, MetaDescription, MetaRobots, TwitterTitle, TwitterDescription, TwitterImage, TwitterSite, TwitterCreator, OGTitle, OGImage, OGImageType, OGUrl, OGDescription, OGSiteName, FBAuthor, FBPublisher, GplusAuthor and GplusPublisher, (*6)

The Versions

14/05 2018

dev-master

9999999-dev http://github.com/gorriecoe/silverstripe-meta

Improves silverstripes html meta data options.

  Sources   Download

BSD-3-Clause

The Requires

 

by Gorrie Coe

facebook silverstripe title meta opengraph open graph social media share metatitle

14/05 2018

1.0.2

1.0.2.0 http://github.com/gorriecoe/silverstripe-meta

Improves silverstripes html meta data options.

  Sources   Download

BSD-3-Clause

The Requires

 

by Gorrie Coe

facebook silverstripe title meta opengraph open graph social media share metatitle

03/05 2018

1.0.1

1.0.1.0 http://github.com/gorriecoe/silverstripe-meta

Improves silverstripes html meta data options.

  Sources   Download

BSD-3-Clause

The Requires

 

by Gorrie Coe

facebook silverstripe title meta opengraph open graph social media share metatitle

26/04 2018

1.0.0

1.0.0.0 http://github.com/gorriecoe/silverstripe-meta

Improves silverstripes html meta data options.

  Sources   Download

BSD-3-Clause

The Requires

 

by Gorrie Coe

facebook silverstripe title meta opengraph open graph social media share metatitle