Feature: #95037 - New startingPoints setting for FormEngine treeConfig
See forge#95037
Description
The TCA option
tree used in
render and
type=category has a new
setting
starting that allows to set multiple records as roots for tree
records.
Impact
The setting takes a CSV value, e.g. 2,3,4711, which takes records of the pids
2, 3 and 4711 into account and creates a tree of these records.
Additionally, each value used in
starting may be fed from a site
configuration by using the
###SITE:### syntax.
Example:
# Site config
base: /
rootPageId: 1
categories:
root: 123
Copied!
// Example TCA config
'config' => [
'treeConfig' => [
'startingPoints' => '1,2,###SITE:categories.root###',
],
],
Copied!
This will evaluate to
'starting.