heimrichhannot / contao-categories-bundle
This bundle allows to assign nestable categories to arbitrary entities in Contao-driven systems.
Installs: 5 914
Dependents: 4
Suggesters: 1
Security: 0
Stars: 4
Watchers: 6
Forks: 2
Open Issues: 3
Type:contao-bundle
Requires
- php: ^7.4||^8.0
- contao/core-bundle: ^4.4
- heimrichhannot/contao-multi-column-editor-bundle: ^2.0
- heimrichhannot/contao-request-bundle: ^1.0
- heimrichhannot/contao-utils-bundle: ^2.210
- wa72/htmlpagedom: ^1.3 || ^2.0
Suggests
- heimrichhannot/contao-categories-multilingual-bundle: Adds multilanguage support for categories bundle.
- dev-master
- 1.4.6
- 1.4.5
- 1.4.4
- 1.4.3
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.1
- 1.2.0
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- 1.0.0-beta33
- 1.0.0-beta32
- 1.0.0-beta31
- 1.0.0-beta30
- 1.0.0-beta29
- 1.0.0-beta28
- 1.0.0-beta27
- 1.0.0-beta26
- 1.0.0-beta25
- 1.0.0-beta24
- 1.0.0-beta23
- 1.0.0-beta22
- 1.0.0-beta21
- 1.0.0-beta20
- 1.0.0-beta19
- 1.0.0-beta18
- 1.0.0-beta17
- 1.0.0-beta16
- 1.0.0-beta15
- 1.0.0-beta14
- 1.0.0-beta13
- 1.0.0-beta12
- 1.0.0-beta11
- 1.0.0-beta10
- 1.0.0-beta9
- 1.0.0-beta8
- 1.0.0-beta7
- 1.0.0-beta6
- 1.0.0-beta5
- 1.0.0-beta4
- 1.0.0-beta3
- 1.0.0-beta2
- 1.0.0-beta
- dev-feature/formgenerator
- dev-categories-order-fix
- dev-fix/8
- dev-feature/enhancements
This package is auto-updated.
Last update: 2024-11-25 16:34:30 UTC
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).