1. Go to this page and download the library: Download spooner-web/tcabuilder 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/ */
// Returns the default values of ctrl section
// By default language, version and sorting options are set
// These options can be unset and additional overridden fields can be set
$configuration['ctrl'] = \SpoonerWeb\TcaBuilder\TcaCreator::getControlConfiguration(
'title',
'label'
);
// Returns the default columns depending on the ctrl section configuration
// Example: If ctrl section // Uses TcaBuilder class to create the configuration for the TCA form
$configuration['types'][] = \SpoonerWeb\TcaBuilder\TcaCreator::buildTypesConfiguration()
->addDiv('General')
->addField('title')
->addField('subtitle')
->addDiv('Categories')
->addField('categories')
->returnAsArray();
// Now return TCA configuration
return $configuration;
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.