Re-adds the “Meta Title” field that was removed in SilverStripe 3.1.
By: Loz Calver - Bigfork Ltd.
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
Installation with Composer is preferred, but not required. Both methods of installation require a
$ composer require kinglozzer/metatitle:^1.0
Simply download the zip version of this repository, extract it, copy the directory into your SilverStripe installation folder and rename it to “metatitle”.
Content authors can edit the meta title via the new “Title” field that’s added to the “Metadata” toggle fields:
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 %> » $SiteConfig.Title</title>
Module rating system helping users find modules that are well supported. For more on how the rating system works visit Module standards
Score not correct? Let us know there is a problem