You can retrieve the ID of the root page in TYPO3 using the following typoscript code:
# Get the root page object
[rootPage = ]
# Get the root page ID
config.rootPageId = {$rootPage}
[GLOBAL]
The config.rootPageId
variable will contain the ID of the root page. Be sure to replace the {$rootPage}
placeholder with the ID of your root page.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2023-05-28 01:44:47 +0000
Seen: 7 times
Last updated: May 28 '23