Search code examples
typo3typoscriptfluidextbase

Edit Typoscript Setup of page in Extbase controller


I am currently working on an extbase extension. In that extension I want to edit/(add) the typoscript setup of a specific page from inside the extension controller. I have already aquired the uid of that page but I can't figure out how to access the typoscript setup of that page. Does anyone know how to do this? Thanks in advance.


Solution

  • When you create a new page you also can create other records which belong into that page.
    Each page can have it's own typoscript with an 'extension template' (a sys_template record) which is stored in that page (pid of sys_template record = uid of pages record). 'Extension templates' are additions to a global typoscript/ or at least the typoscript from the parent page. In this 'extension template' you can assign just another fluid template.

    If you don't know which fields needs to be filled in the correct way (primarily you need pid and config) create such an 'extension template' by hand and inspect the record in your database.