Download the PHP package heimrichhannot/contao-categories-bundle without Composer
On this page you can find all versions of the php package heimrichhannot/contao-categories-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download heimrichhannot/contao-categories-bundle
More information about heimrichhannot/contao-categories-bundle
Files in heimrichhannot/contao-categories-bundle
Package contao-categories-bundle
Short Description This bundle allows to assign nestable categories to arbitrary entities in Contao-driven systems.
License LGPL-3.0-or-later
Informations about the package contao-categories-bundle
Contao Categories Bundle
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
-
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
Concepts
Technical instructions
Guide: News categories field
All versions of contao-categories-bundle with dependencies
contao/core-bundle Version ^4.4
heimrichhannot/contao-utils-bundle Version ^2.210
heimrichhannot/contao-multi-column-editor-bundle Version ^2.0
wa72/htmlpagedom Version ^1.3 || ^2.0
heimrichhannot/contao-request-bundle Version ^1.0