PHP code example of colorcube / dummy-content

1. Go to this page and download the library: Download colorcube/dummy-content 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/ */

    

colorcube / dummy-content example snippets



if (class_exists('\Colorcube\DummyContent\TcaPresets')) {
    $GLOBALS['TCA']['tx_siteevents_domain_model_event']['columns']['title']['config']['fieldWizard'] = array_merge(
        (array)($GLOBALS['TCA']['tx_siteevents_domain_model_event']['columns']['title']['config']['fieldWizard']), 
        \Colorcube\DummyContent\TcaPresets::getFieldControlForHeader()
    );
    $GLOBALS['TCA']['tx_siteevents_domain_model_event']['columns']['subtitle']['config']['fieldWizard'] = array_merge(
        (array)($GLOBALS['TCA']['tx_siteevents_domain_model_event']['columns']['subtitle']['config']['fieldWizard']), 
        \Colorcube\DummyContent\TcaPresets::getFieldControlForHeader()
    );
    $GLOBALS['TCA']['tx_siteevents_domain_model_event']['columns']['teaser']['config']['fieldWizard'] = array_merge(
        (array)($GLOBALS['TCA']['tx_siteevents_domain_model_event']['columns']['teaser']['config']['fieldWizard']), 
        \Colorcube\DummyContent\TcaPresets::getFieldControlForTeaser()
    );
    $GLOBALS['TCA']['tx_siteevents_domain_model_event']['columns']['description']['config']['fieldWizard'] = array_merge(
        (array)($GLOBALS['TCA']['tx_siteevents_domain_model_event']['columns']['description']['config']['fieldWizard']), 
        \Colorcube\DummyContent\TcaPresets::getFieldControlForBodytext()
    );
}