- Extend the
tl_custom_collection.php
table by adding a custom subpalette for each collection. The name must correspond totype_<collection_archive>
, whereas collection_archive is the name of your collection archive in snake case. E.g. for an archive called "Example Collection":You can thereby chose from numerous predefined fields, or, add your custom fields to the$GLOBALS['TL_DCA']['tl_custom_collection']['subpalettes']['type_example_collection'] = ';{image_legend},addImage;{text_legend},text;';
fields
array, e.g.:$GLOBALS['TL_DCA']['tl_custom_collection']['fields']['exampleTextField'] = [ 'label' => &$GLOBALS['TL_LANG']['tl_custom_collection']['exampleTextField'], 'exclude' => true, 'search' => true, 'sorting' => true, 'inputType' => 'text', 'eval' => array('mandatory'=>false, 'maxlength'=>255), 'sql' => "varchar(255) NOT NULL default ''" ];
- After install and DB update, create a custom collection archive in the Contao Backend and start adding items to your collection.
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.
forked from RenoMeyer/ContaoCustomCollectionBundle
-
Notifications
You must be signed in to change notification settings - Fork 0
1up-lab-archive/ContaoCustomCollectionBundle
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Packages 0
No packages published
Languages
- PHP 100.0%