Search code examples
typo3typo3-extensionstypo3-10.x

Is it possible to render custom extension without include in backend in template module of TYPO3


I am newer in typo3. I don't know how it is do. Thanks in advance.


Solution

  • sorry, your question is a little bit too short.

    Extending TYPO3 will mostly realized with help of an UserFunc. And yes, extbase and piBase are UserFunc's, too. You want to implement your own PHP based solution? Implement it with help of an UserFunc:

    https://docs.typo3.org/m/typo3/reference-typoscript/main/en-us/ContentObjects/UserAndUserInt/Index.html

    As you see I have posted a link to the TypoScript reference of TYPO3. As TypoScript have to be included somehow (mainly in the Template Module) there are IMO only 2 further ways to add TypoScript without TS backend module:

    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript();

    Else, you can create a file named ext_typoscript_setup.typoscript in root of your extension. Every TypoScript in there will be added automatically.

    The official way says: Create file Configuration/TCA/Overrides/sys_template.php and register your TypoScript as follows:

    \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile(
        'your_ext_key',
        'Configuration/TypoScript',
        'A cool title for TS backend module'
    );
    

    Nice greetings

    Stefan