innoweb/silverstripe-social-share
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
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
innoweb/silverstripe-social-share 适用场景与选型建议
innoweb/silverstripe-social-share 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 13.85k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2017 年 05 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「social」 「silverstripe」 「sharing」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 innoweb/silverstripe-social-share 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 innoweb/silverstripe-social-share 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 innoweb/silverstripe-social-share 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Simple Sharing generates social media share links within CP entry pages, allowing you to quickly & easily share entries.
LinkedIn integration for Social
Silverstripe module handling meta tags for pages.
Analytics chooser extensions for site settings.
Symfony bundle that handles cross-origin resource sharing headers.
统计信息
- 总下载量: 13.85k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 37
- 依赖项目数: 1
- 推荐数: 3
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2017-05-04