2017 © Pedro Peláez
 

silverstripe-vendormodule silverstripe-canonical

Adds a simple canonical tag in Silverstripe 4

image

dorsetdigital/silverstripe-canonical

Adds a simple canonical tag in Silverstripe 4

  • Wednesday, June 20, 2018
  • by DorsetDigital
  • Repository
  • 2 Watchers
  • 1 Stars
  • 68 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 4 Versions
  • 84 % Grown

The README.md

silverstripe-canonical

Adds a simple rel=canonical tag to Silverstripe, (*1)

Scrutinizer Code Quality Build Status License Version, (*2)

Requirements

*Silverstripe 4 | 5, (*3)

Installation

  • Install the code with composer require dorsetdigital/silverstripe-canonical
  • Run a dev/build?flush to update your project

Usage

This module adds a simple canonical tag to your pages to allow for the specification of the default domain.
The canonical tag allows you to signal to search engines like Google which is the authoritative version of the page to help reduce duplicate content issues caused by non-www versions, pages with different protocols, etc., (*4)

Once installed, go to the site settings and enter the full canonical domain. This should include the protocol (e.g. http:// or https://), (*5)

The module tries to be the last extension to be applied, and will try to remove any existing rel="canonical" tags from the head., (*6)

At the time of writing, the canonical tags are only added correctly for pages in the SiteTree. Pages generated from custom controllers or from DataObjects may or may not work! When creating the canonical tags, the module will look for a method called CanonicalLink() on the extended object. If you are using DataObjects as pages, adding this method on the relevant controller should allow you to control the canonical URL in these cases., (*7)

Additional Credits

  • Thanks to @sanderha for the Danish translation
  • Thanks to @lerni for his enhancements

The Versions

20/06 2018

dev-master

9999999-dev https://github.com/DorsetDigital/silverstripe-canonical

Adds a simple canonical tag in Silverstripe 4

  Sources   Download

BSD-3-Clause

The Requires

 

by Tim Burt

html silverstripe seo canonical

20/06 2018

v1.0.2

1.0.2.0 https://github.com/DorsetDigital/silverstripe-canonical

Adds a simple canonical tag in Silverstripe 4

  Sources   Download

BSD-3-Clause

The Requires

 

by Tim Burt

html silverstripe seo canonical

20/03 2018

v1.0.1

1.0.1.0 https://github.com/DorsetDigital/silverstripe-canonical

Adds a simple canonical tag in Silverstripe 4

  Sources   Download

BSD-3-Clause

The Requires

 

by Tim Burt

html silverstripe seo canonical

20/03 2018

v1.0.0

1.0.0.0 https://github.com/DorsetDigital/silverstripe-canonical

Adds a simple canonical tag in Silverstripe 4

  Sources   Download

BSD-3-Clause

The Requires

 

by Tim Burt

html silverstripe seo canonical