Add First custom TypoScript

In order to demonstrate how to configure rendering of TYPO3.

!!!: Don't forget to include the static template within sys_template record.
This commit is contained in:
Daniel Siepmann 2023-02-15 09:10:21 +01:00
parent 63a65e3447
commit 1cea5afb5c
Signed by: Daniel Siepmann
GPG key ID: 33D6629915560EF4
3 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,10 @@
<?php
// See: https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ExtensionArchitecture/FileStructure/Configuration/TCA/Index.html
// See: https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ExtensionArchitecture/FileStructure/Configuration/TypoScript/Index.html
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile(
'sitepackage',
'Configuration/TypoScript',
'Sitepackage'
);

View file

@ -0,0 +1,4 @@
page {
11 = TEXT
11.value = Hello World
}

View file

@ -0,0 +1,4 @@
// See: https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ExtensionArchitecture/FileStructure/Configuration/TypoScript/Index.html
// See: https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/Configuration/TypoScriptSyntax/Index.html
<INCLUDE_TYPOSCRIPT: source="DIR:EXT:sitepackage/Configuration/TypoScript/Setup/" extensions="typoscript">