2017 © Pedro Peláez
 

contao-bundle contao-custom-collection-bundle

image

oneup/contao-custom-collection-bundle

  • Monday, August 28, 2017
  • by sheeep
  • Repository
  • 4 Watchers
  • 1 Stars
  • 107 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Contao Custom Collection

Use

  1. Extend the tl_custom_collection.php table by adding a custom subpalette for each collection. The name must correspond to type_<collection_archive>, whereas collection_archive is the name of your collection archive in snake case. E.g. for an archive called "Example Collection": php $GLOBALS['TL_DCA']['tl_custom_collection']['subpalettes']['type_example_collection'] = ';{image_legend},addImage;{text_legend},text;'; You can thereby chose from numerous predefined fields, or, add your custom fields to the fields array, e.g.: php $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 ''" ];
  2. After install and DB update, create a custom collection archive in the Contao Backend and start adding items to your collection.

The Versions

28/08 2017

dev-master

9999999-dev http://1up.io

  Sources   Download

MIT

The Requires

 

28/08 2017

0.1.2

0.1.2.0 http://1up.io

  Sources   Download

MIT

The Requires

 

28/08 2017

0.1.1

0.1.1.0 http://1up.io

  Sources   Download

MIT

The Requires