PHP code example of markocupic / contao-article-class-select-bundle
1. Go to this page and download the library: Download markocupic/contao-article-class-select-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
markocupic / contao-article-class-select-bundle example snippets
// Inside your contao/dca/tl_article.php you write:
$GLOBALS['TL_DCA']['tl_article']['fields']['containerClass']['options'] = [
'container-sm',
'container-lg',
'container-fluid',
];
$GLOBALS['TL_DCA']['tl_article']['fields']['backgroundClass']['options'] = [
'white-background',
'gray-background',
'dark-background',
];