Download the PHP package heimrichhannot/contao-archive-palettes-bundle without Composer
On this page you can find all versions of the php package heimrichhannot/contao-archive-palettes-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download heimrichhannot/contao-archive-palettes-bundle
More information about heimrichhannot/contao-archive-palettes-bundle
Files in heimrichhannot/contao-archive-palettes-bundle
Package contao-archive-palettes-bundle
Short Description This bundle offers functionality for selecting custom palettes depending on the parent archive for the backend of the Contao CMS.
License LGPL-3.0-or-later
Informations about the package contao-archive-palettes-bundle
Contao Archive Palettes Bundle
This bundle offers functionality for selecting custom palettes depending on the parent archive for the backend of the Contao CMS.
Features
- add custom palettes to your DCA files
- select them in the parent archive
Setup
- Install via composer:
composer require heimrichhannot/contao-archive-palettes-bundle
. -
Adjust your project configuration
Example for tl_news:
- Clear cache and update your database
Configuration
Configuration via yaml
Configuration via PHP
- Open the DCA file you'd like to extend. As an example we use
tl_news
. It should be located in your project bundle. -
Create the custom field palettes as you would normally:
-
Paste the following code at the end of the DCA file in order to insert the palette manipulation logic:
- Open the parent DCA file, i.e. the archive DCA file. In the case of
tl_news
this would betl_news_archive
. -
Paste the following code at the end of the DCA file in order to insert the palette manipulation logic:
-
Add the following code at the end of the file in order to add the palette selector field (the field as been added in the step before):
- Clear the project cache and update the database in order to add the needed fields.
- Open archive's configuration (
editheader
operation in most cases) and set the custom palette to your needs.
All versions of contao-archive-palettes-bundle with dependencies
contao/core-bundle Version ^4.9
heimrichhannot/contao-utils-bundle Version ^2.164
symfony/dependency-injection Version ^4.4 || ^5.0
symfony/polyfill-php80 Version ^1.26