vojtasvoboda/oc-brands-plugin 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

vojtasvoboda/oc-brands-plugin

Composer 安装命令:

composer require vojtasvoboda/oc-brands-plugin

包简介

Brands plugin for OctoberCMS

README 文档

README

Codacy Scrutinizer Coverage License

Show your brands, partners, projects, showcases, portfolio or anything else on your page. No other plugin requirements. Tested with latest October CMS build 382.

Key features

  • list of all brands with pagination, category filtration and letter filtration
  • customizable Bootstrap layout (1-12 columns)
  • one brand can be in many categories, with logo and unlimited images
  • show brand detail with a photo gallery
  • translations implemented
  • SiteSearch plugin native support

Use cases

  • show clients logos with external links (or without)
  • show projects for my clients represented by logos (with photogallery at brand detail)
  • show partners with cooperation details
  • show my portfolio with screenshots

Create brands page

  • create new page
  • if you want to filter by brand categories, insert category filter to URL: /brands/:category?
  • insert Brands component
  • pick Brand page (brand detail) and Category page (brands in category)
  • if you want to filter by letters, insert Brand letters component

Example of Brands page with category and letter filtration:

title = "Brands"
url = "/brands/:category?"
layout = "default"
is_hidden = 0

[brands]
brandPage = "brand-detail"
categoryPage = "brands"
categoryFilter = "{{ :category }}"
perPage = 12
sortOrder = "ASC"
pageNumber = "{{ page }}"
perRow = 6
logoWidth = 300
logoHeight = 300

[letters]
brandsPage = "brands"
==
<h1>
	Brands
	{% if category %} in category {{ category.name }}{% endif %}
	{% if letter %} starts with "{{ letter }}"{% endif %}
</h1>

{% if category %}
<p>
    <a href="{{ 'brands' | page({category: ''}) }}">
        <small>&lt; all categories</small>
    </a>
</p>
{% endif %}

{% component 'letters' %}

{% component 'brands' %}

Create brand detail page

  • create new page with URL like that: /brand/:slug/
  • insert Brand component
  • pick Category page (page with Brands)

Example of Brand page:

title = "Brand detail"
url = "/brand/:slug/"
layout = "default"
is_hidden = 0

[brand]
slug = "{{ :slug }}"
categoryPage = "brands"
==
{% component 'brand' %}

Brand's links

Each brand can have multiple types of links:

  1. Link to brand detail - fill only slug and create brand detail page.
  2. External link - fill external link parameter, it will override internal link.
  3. No link - shows logo without any link, it will override all links above.

Extending plugin

I'm using this plugin as example how to build first plugin ever, because it covers managing one entity (create, update, delete, change order), create one relation (brand - category) and render all items at the frontend.

I also created examples, how to easily extend plugin's functionality and put all these example to Brands extending examples repository.

TODO

  • fix page title at brand detail
  • changing order for categories
  • batch delete for categories
  • tags management
  • brand detail - paginator for gallery

Contributing

Please send Pull Request to the master branch. Please add also unit tests and make sure all unit tests are green.

License

Brands plugin is open-sourced software licensed under the MIT license same as OctoberCMS platform.

vojtasvoboda/oc-brands-plugin 适用场景与选型建议

vojtasvoboda/oc-brands-plugin 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 11 次下载、GitHub Stars 达 4, 最近一次更新时间为 2016 年 12 月 16 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「plugin」 「october」 「brands」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

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

围绕 vojtasvoboda/oc-brands-plugin 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

  • 总下载量: 11
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2016-12-16