Attention
TYPO3 v11 has reached end-of-life as of October 31th 2024 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.
Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v10 here: TYPO3 ELTS.
selectTree
The select
render type is used to display hierarchical data in a
tree structure.
A field with the select
render type allows you to represent data in
a hierarchical manner, similar to a tree. It is typically used when working
with database tables that have a hierarchical structure. The properties treeConfig and
foreign_table are mandatory and must be provided to establish the
connection to the relevant database table. Optionally, you can also use
items or itemsProcFunc to pass the values, but these are not
sufficient on their own. The top-level item in the tree will always represent
the descriptive name of the table.
Regarding joining several tables, the select
render type can handle multiple
tables through the configuration options.