tree_root_id
Last updated Oct 20th, 2026 | Page history | Improve this page | Report an issue
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$194 per month—let's make that $500!
Learn moretree_root_id¶
Name: Tree Root ID Type: Number Default: 0
Set this to the ID of a single Resource that should act as the root of the left-hand Resource tree. The user will only see Resources that are children of that Resource. Use 0 for the site root.
The value is cast to an integer when it is read ((int)$this->modx->getOption('tree_root_id')); a comma-separated list is not supported.
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$194 per month—let's make that $500!
Learn more










