Project

General

Profile

Actions

Feature #81089

closed

Improve TCA configuration with utility functions and constants

Added by Anonymous about 7 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
-
Target version:
-
Start date:
2017-04-30
Due date:
% Done:

0%

Estimated time:
PHP Version:
7.1
Tags:
TCA
Complexity:
Sprint Focus:

Description

Improving the TCA configuration with utility functions and constants would be really nice.

Possible functions:
  • getRichtextEditorTCAConfig(...)
  • getLinkWizardTCAConfig(...)

So actually something like ExtensionManagementUtility::getFileFieldTCAConfig for wizards, richtext fields, select fields, etc.

Possible constants:
  • TYPE_SELECT = 'select', TYPE_INPUT = 'input', ...
  • RENDER_TYPE_SELECT_MULTIPLE_SIDE_BY_SIDE = 'selectMultipleSideBySide', RENDER_TYPE_SELECT_SINGLE='selectSingle'
  • EVAL_TRIM = 'trim', EVAL_NOSPACE = 'nospace'
Advantages:
  • IDE code completion
  • IDE could inform about deprecated constants/functions
  • Avoids typos
  • Avoids duplicate code
  • Easier refactoring
Actions #1

Updated by Georg Ringer about 4 years ago

  • Status changed from New to Closed

Thanks for creating this issue. It is absolutly true that creating TCA from scratch is too hard and will lead to many mistakes.

However I am closing this issue because this needs thoughts on so many more areas and something like mask or dce and not just some utility classes as shorthand for complicated tca structures.

Actions

Also available in: Atom PDF