Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.