Skip to content

helpfulrobot/kinglozzer-metatitle

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MetaTitle

Build Status Latest Stable Version Total Downloads License

Re-adds the “Meta Title” field that was removed in SilverStripe 3.1.

By: Loz Calver - Bigfork Ltd.

Contributing:

Translations were pulled from SilverStripe CMS v3.0.2 (before the SiteTree.METATITLE entity was removed). Pull requests are welcome for improving those translations and adding SiteTree.METATITLEHELP translations.

Installation:

Installation with Composer is preferred, but not required. Both methods of installation require a dev/build.

Composer

$ composer require kinglozzer/metatitle:^1.0

ZIP Download

Simply download the zip version of this repository, extract it, copy the directory into your SilverStripe installation folder and rename it to “metatitle”.

Usage:

CMS

Content authors can edit the meta title via the new “Title” field that’s added to the “Metadata” toggle fields:

Templates

You can access the meta title with the $MetaTitle variable. For example, to output the meta title (with a fall-back to page title) you can use the following in templates:

<title><% if $MetaTitle %>$MetaTitle<% else %>$Title<% end_if %> &raquo; $SiteConfig.Title</title>
$MetaTags(false)

About

Re-adds the 'MetaTitle' field for SilverStripe 3.1

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%