PHP code example of remind / headless
1. Go to this page and download the library: Download remind/headless 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/ */
remind / headless example snippets
'columnsOverrides' => [
'tx_headless_background_color' => [
'config' => [
'items' => [
1 => [
'label' => 'Custom Color',
'value' => 'custom',
],
],
],
],
],
$GLOBALS['TCA']['tt_content']['types']['textpic']['columnsOverrides']['image']['config']['overrideChildTca']['columns']['crop']['config'] = [
'cropVariants' => [
'sm' => [
// configuration
],
'md' => [
// configuration
],
'lg' => [
// configuration
],
],
];
$GLOBALS['TCA']['tt_content']['types']['accordion']['columnsOverrides']['tx_headless_item']['config']['overrideChildTca']['columns']['image']['config']['overrideChildTca']['columns']['crop']['config'] = [
'cropVariants' => [
'sm' => [
// configuration
],
'md' => [
// configuration
],
'lg' => [
// configuration
],
],
];
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
'*',
'FILE:EXT:provider_extension/Configuration/FlexForms/FooterContent.xml',
'footer_content'
);