supseven/confuse

a (maybe) smarter way to write your TCA

Installs: 6

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 4

Forks: 0

Open Issues: 0

Type:typo3-cms-extension

v1.0.3 2020-01-08 15:03 UTC

This package is auto-updated.

Last update: 2024-04-09 01:03:19 UTC


README

a (maybe) smarter way to write your TCA

what it supposed to be

  • write your TCA files with autocomplete
  • maintain your TCA in a global file

what it is not supposed to be

  • a well documented project by now
  • a complete extension due to lack of time

use it like this in your TCA (overrides)

\Supseven\Confuse\Service\Tca\Create::getInstance()->addElement([
    \Supseven\Confuse\Service\Tca\Elements\Check::create()
        ->setName('test')
        ->setExclude(true)
        ->setValue([
            ['', ''],
            ['.h1', 'h1'],
            ['.h2', 'h2'],
        ])
        ->build()
])->persist('tt_content');