|
|
How can i store Typoscript in text files and include them in the root templateIt makes sense to store Typoscript code in text files in order to be able to version it with versioning systems like SVN? or edit it with your own editor.In order to include these Typoscript files you first need to place these files somewhere accessible for the webserver for example in the directory fileadmin / typoscript_files? then you can include this with the following code in your root template: <INCLUDE_TYPOSCRIPT: source="FILE: fileadmin/typoscript_files/mytyposcript.ts"> PLEASE NOTE: you cannot edit or create *.ts (typoscript) files using the Filelist module? by default. You have to enable the editing of the *.ts files with the Install Tool or by adding the ts to the following localconf.php variable: $TYPO3_CONF_VARS['SYS'][textfile_ext] = txt, html, htm, css, inc, tmpl, js, sql, php, php3, php4, php5, php6, ts Pay attention to the last element in the list above! General aspects : | TYPO3 | TYPO3 Installation | TYPO3 Configuration | TYPO Administration | TYPO3 Performance |TYPO3 Troubleshooting | TYPO3 Glossary | Development : | Typoscript | TYPO3 Extensions - TER | TYPO3 API | TYPO3 Extension Development | Extbase | Fluid? | 3rd party | Back to > CMS |
Google SearchLogin |