heimrichhannot / contao-newspicker-bundle
A bundle providing a news picker widget
Installs: 57
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 6
Forks: 0
Open Issues: 0
Type:contao-bundle
Requires
- contao/core-bundle: ^4.4
- contao/news-bundle: ^4.4
- symfony/config: ^3.4|^4.4|^5.0
- symfony/dependency-injection: ^3.4|^4.4|^5.0
- symfony/http-kernel: ^3.4|^4.4|^5.0
README
This bundle adds an newsPicker inputType to contao.
Usage
Setup
Install with composer or contao manager
Usage in dca
// Single news picker $GLOBALS['TL_DCA']['fields']['newsSelect'] = [ 'label' => &$GLOBALS['TL_LANG']['tl_content']['newsSelect'], 'inputType' => 'newsPicker', 'eval' => [ 'tl_class' => 'clr', 'multiple' => false, ], 'sql' => "int(10) unsigned NOT NULL default '0'", ]; // Multiple news picker $GLOBALS['TL_DCA']['fields']['newsSelect'] = [ 'label' => &$GLOBALS['TL_LANG']['tl_content']['newsSelect'], 'inputType' => 'newsPicker', 'eval' => [ 'tl_class' => 'clr', 'multiple' => true, ], 'sql' => "blob NULL", ];