定制 innoweb/silverstripe-social-share 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

innoweb/silverstripe-social-share

最新稳定版本:5.0.0

Composer 安装命令:

composer require innoweb/silverstripe-social-share

包简介

Adds sharing links and buttons for Facebook, X (Twitter), Instagram, Pinterest and Google+ as well as AddThis to the site.

README 文档

README

Version License

Overview

Adds sharing links and buttons for Facebook, X (Twitter), Instagram, Pinterest as well as AddThis to the site.

Requirements

  • SilverStripe CMS 6

Installation

Install the module using composer:

composer require innoweb/silverstripe-social-share dev-master

Then run dev/build.

Configuration

The module adds a new tab to the SiteConfig in the CMS where the sharing options can be managed.

To add the sharing links to your site, add the following include to your Page.ss template:

<% include PageShareLinks %>

This will activate sharing for the current page.

You can also activate sharing of the base URL of the site for all pages. For that, activate the following setting in your config.yml:

Innoweb\SocialShare\Extensions\ConfigExtension:
  enable_base_share: true

You also have to add the following include to your Page.ss file:

<% include BaseShareLinks %>

You can restrict the type of sharing links to a specific type by adding the following config to yuour SiteConfig or Site:

SilverStripe\SiteConfig\SiteConfig:
  restrict_sharing_type: [Links|Buttons|AddThis]

MultiSites support

The module supports multisites and configured-multisites and by default adds the config options to the Sites.

If you want to manage the social links globally, please add the following settings in your config.yml:

Innoweb\SocialShare\Extensions\ConfigExtension:
  multisites_enable_global_settings: true

This will add the fields to your SiteConfig instead of Site.

License

BSD 3-Clause License, see License

统计信息

  • 总下载量: 11.47k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 3

GitHub 信息

  • Stars: 1
  • Watchers: 3
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2017-05-04