vojtasvoboda/oc-brands-plugin
Composer 安装命令:
composer require vojtasvoboda/oc-brands-plugin
包简介
Brands plugin for OctoberCMS
README 文档
README
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>< 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:
- Link to brand detail - fill only slug and create brand detail page.
- External link - fill external link parameter, it will override internal link.
- 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 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 vojtasvoboda/oc-brands-plugin 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
CakePHP 4.x AdminLTE Theme.
User plugin for October CMS
Laravel Horizon integration for October CMS
Custom form builder for OctoberCMS
Shop by brand extension for magento2
Laravel Telescope integration for OctoberCMS.
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-12-16