[TYPO3-english] DIR include of TypoScript

Ralf-Rene Schröder ralf.rene at online.de
Wed Oct 16 12:34:08 CEST 2013


Am 16.10.2013 08:31, schrieb Christian Essl:
>> FAZIT:
>> Only Rene's suggestion actually shows the developers and users immediately what for they are! A Folder solution only, would not achieve this!
> 
> Organizing typscript files with a folder structure is very clear to read. If the Integrator mixes up typoscript snippets of different kinds, he is clearly doing something wrong and should at least read the basics about TYPO3 and Typoscript:
> http://docs.typo3.org/typo3cms/TyposcriptSyntaxReference/

if you hav an installation with, let us say 40 files with typoscript for
the setup field (for many extensions, page, pageblocs, menus, etc.)
also 20 files for the constants field (mainly for extensions, menus,
config, etc)
and 10 individual extension typoscript files for the pageTSconfig field

in the past we have to organize it in a tree like this:
TypoScript
  setup
    ...individual tree
  constants
    ...individual tree
  pageTSconfig
    ...individual tree

the files that belong together for let us say the news extension are
splittet in three folders in the tree

with the NEW (in 6.2) possibility, i only need ONE Tree (all files from
the news extension are in one folder)... and for THIS useage it would be
a good start to give recomended fileextensions !!!

see on TYPO3.org
http://typo3.org/news/article/typo3-cms-62-lts-alpha3-released/
Frontend Rendering / TypoScript
A nice addition for integrators: INCLUDE_TYPOSCRIPT now is able to
recursively add all files from a directory (and it's subdirectories)
(#34621). For example:
<INCLUDE TYPOSCRIPT: source="DIR:directorypath" extensions="ts">
If the additional property extensions=".." is provided, only files with
these file extensions are included. This allows e.g. to include both
setup and constants from the same directory tree, using different file
extensions for each.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


-- 
image[FORMAT] - Ralf-René Schröder
http://www.image-format.eu ... Wir geben Ihrem Image das richtige Format


More information about the TYPO3-english mailing list