supseven/confuse

a (maybe) smarter way to write your TCA

Installs: 4

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

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: 2021-04-08 18:14:20 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');