Skip to content

Instantly share code, notes, and snippets.

@briezler
Created April 20, 2021 07:14
Show Gist options
  • Save briezler/3c7617268a9c6edf48b5fd65da1ab374 to your computer and use it in GitHub Desktop.
Save briezler/3c7617268a9c6edf48b5fd65da1ab374 to your computer and use it in GitHub Desktop.
List all ctype content elements TYPO3
$items = $GLOBALS['TCA']['tt_content']['columns']['CType']['config']['items'];
foreach($items as $item) {
if ($item[1] != '--div--') {
echo $item[1] . ', ';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment