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

为 SilverStripe 添加 Facebook 域 insights 的模块。

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

This package is not auto-updated.

Last update: 2024-09-23 14:13:09 UTC


README

Build Status Scrutinizer Code Quality

概述

这是 graphiques-digitale/silverstripe-seo-metadata 的模块化扩展。

它支持 Facebook 域 insights,即 fb:app_idfb:admins

它需要

它旨在与其兄弟模块一同使用

这些都是可选的,并从 alpha 版本 SSSEO 中分离出来,现在已不再需要。

安装

Composer

  • composer require graphiques-digitale/silverstripe-seo-facebook-domain-insights
  • 使用 /dev/build/?flush 重建

从 ZIP 文件安装

  • 将解压后的文件夹 silverstripe-seo-facebook-domain-insights-{version} 放入 SilverStripe 网站根目录下的 silverstripe-seo-facebook-domain-insights
  • 使用 /dev/build/?flush 重建

CMS 使用

Facebook App ID 通过 /admin/settings/ 下的元数据标签全局设置。

Facebook Admins 通过在相同位置的 Members/users 添加。

Admin IDs 在 /admin/security/ 页面对实际用户进行设置。

模板使用

根据您的配置,一般想法是将所有与元数据相关的头部内容替换为在 <head> 标签下方和 $BaseHref() 函数下的 $Metadata(),例如:

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

这将输出类似以下内容:

<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>

问题跟踪器

问题在 GitHub @ 问题跟踪器 上跟踪。

开发和贡献

如果您在 SEO 模块任何领域都有专业知识,并想帮忙,请联系 @ hello@graphiquesdigitale.net ~ 维护它们需要很多精力。

许可

BSD-3-Clause 许可证

查看 @ 为什么选择 BSD?

Screenshot

Screenshot

Screenshot