heimrichhannot/contao-categories-bundle
Composer 安装命令:
composer require heimrichhannot/contao-categories-bundle
包简介
This bundle allows to assign nestable categories to arbitrary entities in Contao-driven systems.
README 文档
README
This bundle allows to assign nestable categories to arbitrary entities in Contao-driven systems.
Features
- the module is done in a generic way, i.e. you can assign category/categories field(s) to arbitrary DCAs
- conveniently add single category fields (radio button) or multiple categories fields (checkbox) via a simple function call
- specify overridable properties in categories and compute the correct result depending on the given context easily
- multilanguage support via heimrichhannot/contao-categories-multilingual-bundle
- categories filter type for Contao Filter Bundle
Impressions
Category management
Main category management view. By clicking the cog icon you can navigate to the category configs.
Widget integration in your DCA
Add category fields to your DCA easily. The category marked as primary category is colored in green.
Picker widgets
Single category picker with radio buttons (selecting parent categories is allowed -> can be disallowed if necessary; no primary category marker necessary)
Single category picker with checkboxes (selecting parent categories is disallowed; the yellow asterisk marks the primary category -> this attribute is stored to an automatically created field named <categoriesFieldname>_primary)
Usage
Install
-
Install bundle with composer or contao manager
composer require heimrichhannot/contao-categories-bundle -
Update database
-
Add category support to the datacontainer you want, e.g. news
Filter bundle integration
This bundle comes with two filter types:
- CategoryChoiceType let you select categories to filter a list.
- ParentCategoryChoiceType is an inital filter to filter your list based on a parent category (means all elements are in a child category of the selected parent).
Entity structure
| Table | Description |
|---|---|
| tl_category | Contains the category instances |
| tl_category_association | Association table between tl_category and your DCA's table |
| tl_category_context | Defines context keys (simple strings) usable in category configs |
| tl_category_config | Contains category configs. Here you can override properties defined per default in a category linked with a certain category context |
| tl_category_property_cache | Contains the resolved overridable property values |
Documentation
heimrichhannot/contao-categories-bundle 适用场景与选型建议
heimrichhannot/contao-categories-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 6.78k 次下载、GitHub Stars 达 4, 最近一次更新时间为 2017 年 12 月 06 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 heimrichhannot/contao-categories-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 heimrichhannot/contao-categories-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 6.78k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 8
- 依赖项目数: 3
- 推荐数: 2
其他信息
- 授权协议: LGPL-3.0-or-later
- 更新时间: 2017-12-06




