PHP code example of guave / flexibleelement-bundle
1. Go to this page and download the library: Download guave/flexibleelement-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/ */
guave / flexibleelement-bundle example snippets
$GLOBALS['TL_FLEXIBLEELEMENT']['templates'] = [
[
'id' => 'flexible-2column-text',
'template' => 'content-elements/ce_2column-text',
],
];
$GLOBALS['TL_DCA']['tl_content']['subpalettes']['elementTemplate_flexible-2column-text'] = 'flexibleTitle,flexibleText,flexibleTextColumn';