TYPO3: Use TCA.php to create Frontend forms?

I am looking for a solution to create an external form from TCA.php of my TYPO3 extension.

Is there a way to select TCA.php values ​​from my extension class? I want to create a select element with the values ​​of the TCA.php file.

It would be great if someone could give me some advice :)

+4
source share
2 answers

TCA is available worldwide. You can select any table configuration (TCA) using the GLOBAL variable. For example, TCA for regular content (tt_content) can be found inside

$ GLOBALS ['TCA'] ['tt_content']

TCA contains the entire table configuration, if you want to see all this, I suggest you simply print_r () the table configuration that you would like to see.

The configuration for each field inside the table is stored in

$ GLOBALS ['TCA'] ['TableName'] ['columns'] ['ColumnName']

If the TCA is not already loaded, you can load it manually with the following command:

t3lib_div :: loadTCA ('TABLENAME');

It will help you on your way.

+5
source

To do this, we use the wil_frontendedit extension. It has basic validation and some other tricks. The front forms in typo3 have historically been a pain, and there are 10 different modules / ways to create them.

0
source

Source: https://habr.com/ru/post/1307399/


All Articles