Menu


How can i store Typoscript in text files and include them in the root template

It 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!




Google Search

 
wiki.lacisoft.com
WWW
2009-2011 (c) Lacisoft.com