Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/heimrichhannot/contao-newspicker-bundle
A newspicker input type for contao.
https://github.com/heimrichhannot/contao-newspicker-bundle
Last synced: about 1 month ago
JSON representation
A newspicker input type for contao.
- Host: GitHub
- URL: https://github.com/heimrichhannot/contao-newspicker-bundle
- Owner: heimrichhannot
- License: other
- Created: 2021-03-11T12:45:23.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-06-08T07:36:17.000Z (over 3 years ago)
- Last Synced: 2024-09-25T22:55:02.893Z (3 months ago)
- Language: PHP
- Size: 82 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Contao Newspicker Bundle
This bundle adds an newsPicker inputType to contao.
![](docs/img/screenshot_widget.png)
![](docs/img/screenshot_picker.png)
## Usage
### Setup
Install with composer or contao manager
### Usage in dca
```php
// 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",
];
```