graphiques-digitale/silverstripe-seo-facebook-domain-insights

Module for adding Facebook Domain Insights to SilverStripe.

v1.0.0 2016-07-04 10:32 UTC

This package is not auto-updated.

Last update: 2024-11-18 14:47:49 UTC


README

Build Status Scrutinizer Code Quality

Overview

This is a modular extension for graphiques-digitale/silverstripe-seo-metadata

It enables Facebook Domain Insights i.e. fb:app_id and fb:admins

It requires:

It is intended to be used alongside it's siblings:

These are all optional and fragmented from the alpha version SSSEO, which is now redundant.

Installation

Composer

  • composer require graphiques-digitale/silverstripe-seo-facebook-domain-insights
  • rebuild using /dev/build/?flush

From ZIP

  • Place the extracted folder silverstripe-seo-facebook-domain-insights-{version} into silverstripe-seo-facebook-domain-insights in the SilverStripe webroot
  • rebuild using /dev/build/?flush

CMS Usage

The Facebook App ID is set globally via /admin/settings/ under the Metadata tab.

Facebook Admins are added by adding Members/users to the at the same location above.

Admin IDs are set against the actual users on their /admin/security/ page.

Template Usage

Depending on your configuration, the general idea is to replace all header content relating to metadata with $Metadata() just below the opening <head> tag and $BaseHref() function, e.g.:

<head>
    <% base_tag %>
    $Metadata()
    <!-- further includes ~ viewport, etc. -->
</head>

This will output something along the lines of:

<head>
    <base href="http://dev.seo.silverstripe.org/"><!--[if lte IE 6]></base><![endif]-->

    <!-- SEO -->
    <!-- Metadata -->
    <meta charset="UTF-8" />
    <link rel="canonical" href="http://dev.seo.silverstripe.org/" />
    <title>Your Site Name | Home - your tagline here</title>
    <meta name="description" content="Welcome to SilverStripe! This is the default home page. You can edit this page by opening the CMS. You can now access the developer documentation, or begin the tutorials." />
    <!-- Facebook Insights -->
    <meta property="fb:app_id" content="FacebookAppID123" />
    <meta property="fb:admins" content="AuthorFacebookProfileID123" />
    <!-- END SEO -->

    <!-- further includes ~ viewport, etc. -->
</head>

Issue Tracker

Issues are tracked on GitHub @ Issue Tracker

Development and Contribution

Please get in touch @ hello@graphiquesdigitale.net if you have any extertise in any of these SEO module's areas and would like to help ~ they're a lot to maintain.

License

BSD-3-Clause license

See @ Why BSD?

Screenshot

Screenshot

Screenshot