定制 bynder/drupal-media-bynder 二次开发

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

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

bynder/drupal-media-bynder

Composer 安装命令:

composer require bynder/drupal-media-bynder

包简介

A Drupal module to integrate Bynder with the Media module

README 文档

README

This module has now been deprecated and is no longer supported or maintained by Bynder. The new version of the module gor both Drupal 7 and 8 has been released and can be found in the Bynder Drupal project page.

Please refer to the project page for the latest source code, documentation and to report any issues/requests.

DEPRECATED - drupal-media-bynder

This configuration guide is based on the standard drupal installation, the current version of drupal is 7.x. Any issues can be reported to [github] (https://github.com/Bynder/drupal-media-bynder/issues).

For more information please visit www.getbynder.com or contact us at info@getbynder.com

Server Requirements

Curl must be installed and enabled to run the Bynder plugin

Install the media_bynder module

Download the latest release and copy the bynder module to "sites/all/modules" and rename the folder to "media_bynder" if necessary or rename the zip file to "media_bynder" before uploading.

Required Modules

Upload the following required modules into the folder "sites/all/modules", some modules require additional modules to operate!
Versions matter!

Go to the "Modules" panel in your admin view and enable the listed modules.

Bynder Configuration Settings

Bynder API

*Bynder url:* The url to be used by the module to communicate with Bynder. *Bynder oauth consumer:* The oauth consumer to be used by the module to communicate with Bynder. *Bynder oauth consumer secret:* The oauth consumer secret to be used by the module to communicate with Bynder. *Bynder oauth token:* The oauth token to be used by the module to communicate with Bynder. *Bynder oauth token secret:* The oauth token secret to be used by the module to communicate with Bynder.

These settings require a Bynder account, for more information please visit www.getbynder.com

Usage of the module

Add media from Bynder to Drupal Library

In order to include media from Bynder into Drupal, go to Content and click the link Media. Here you can click on "Add media from Bynder". Enter a search term and/or click any of the provided facets. Select an image by clicking on it. A confirmation "Successfully added media to Library" (in the right upper corner) will be shown and the media file will be available for usage in the Library.

Add media from Bynder direct to content

Make sure that under Home » Administration » Configuration » Content authoring » Wysiwyg profiles for the text format of your choice (or multiple) you press 'edit' and under the 'buttons and plugins tab' at least 'Media browser' is enabled.

Now if you go to Home » Add content and add new content you will see the 'Add media' button in your WYSIWYG view. Once pressed it will take you to the Bynder module as well and you can add a Bynder image to your content, skipping adding it to the library.

Add media from Bynder as a default field on your content with specific size

You can use this function to (always) add an image to a certain content type. A few examples would be: Every article as in a blog can have a picture of the author. Or a standard page always has to have a banner.

Creates a call to the public Bynder function in /additional/, make sure this is properly configured or ask the Bynder support team.

  1. Add a Style in Home » Administration » Configuration » Media.
  2. Add the 'Bynder custom resolution' effect and select a width and height smaller than the source image as it does not support upscaling. Make sure this is the only effect applied.
  3. Go to Home » Administration » Structure » Content types. Click 'manage fields' for the content type of your choice.
  4. Add a new field. Make sure 'field type' is set to 'Image' and 'widget' to 'media browser'.
  5. Click 'Save'. On the next page click 'Save field settings' again.
  6. Change 'Enabled browser plugins' to 'Bynder' only.
  7. Change 'Allowed URI schemes' to 'Bynder media' only.
  8. lick 'Save settings' once again.
  9. Go to Home » Administration » Structure » Content types. Click 'manage display' for the content type you choose in step 3.
  10. Set format from '' to 'Image'.
  11. For your field (named in step 4) press the 'gear icon'.
  12. Change the 'Image style' to your image style, which you created in step step 1 & 2. If you look at the upper right corner, you will see you just edited this for the 'Default' view mode. You will need to repeat this step for the 'Full content' view mode as well.
  13. Now you can add new content. Go to Home » Add content. Add here new content of the type specified in step step 3.
  14. Scroll down and select an image by clicking the 'Browse' button under your added field name.
  15. Now there should be an image provided by Bynder, with the size specified in step 2, on the content page.

bynder/drupal-media-bynder 适用场景与选型建议

bynder/drupal-media-bynder 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.64k 次下载、GitHub Stars 达 7, 最近一次更新时间为 2015 年 04 月 24 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 bynder/drupal-media-bynder 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 bynder/drupal-media-bynder 我们能提供哪些服务?
定制开发 / 二次开发

基于 bynder/drupal-media-bynder 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 2.64k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 15
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 7
  • Watchers: 78
  • Forks: 5
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2015-04-24