PHP code example of georgringer / inverted-usergroup-access
1. Go to this page and download the library: Download georgringer/inverted-usergroup-access 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/ */
georgringer / inverted-usergroup-access example snippets
$columns = [
'fe_group_negate' => [
'label' => 'LLL:EXT:inverted_usergroup_access/Resources/Private/Language/locallang.xlf:field.fe_group_negate',
'description' => 'LLL:EXT:inverted_usergroup_access/Resources/Private/Language/locallang.xlf:field.fe_group_negate.description',
'config' => [
'type' => 'check',
'renderType' => 'checkboxToggle',
]
]
];
$yourTableName = 'tx_your_table';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns($yourTableName, $columns);
// if you got a palette called `access`, you can add it in the palette
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addFieldsToPalette('tt_content', 'access', '--linebreak--,fe_group_negate', 'after:fe_group');
// or add it directly to the list of fields
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes($yourTableName, 'fe_group_negate', '', 'after:fe_group');
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.