PHP code example of guave / flexiblecontent-bundle

1. Go to this page and download the library: Download guave/flexiblecontent-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 / flexiblecontent-bundle example snippets


$GLOBALS['TL_FLEXIBLE_CONTENT']['templates'] = [
    '2col-text',
];

$GLOBALS['TL_DCA']['tl_content']['subpalettes']['flexibleTemplate_2col-text'] = 'flexibleTitle,flexibleText,flexibleTextColumn';