Ask Your Question
3

How can I retrieve the ID of the root page in TYPO3 using typoscript?

asked 2023-05-28 01:44:47 +0000

huitzilopochtli gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2023-05-28 02:04:02 +0000

qstack gravatar image

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.

edit flag offensive delete link more

Your Answer

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

Add Answer


Question Tools

Stats

Asked: 2023-05-28 01:44:47 +0000

Seen: 7 times

Last updated: May 28 '23