[TYPO3] External files: constants and typoscript
Tapio Markula
tapio.markula at dnainternet.net
Thu Apr 6 12:19:27 CEST 2006
Elmar Hinz wrote:
> Ron Hall schrieb:
>
>>Two things I need insight on:
>>
>>1) Can you put constants into an external file like you can typoscript. If
>>so, how do you access it and include it with your constants?
>>
>
>
> You can put setup and constants into an extension and include them as
> static templates.
>
> yourext/static/constants.txt
> yourext/static/setup.txt
>
> yourext/ext_tables.php:
> <?php
> if (!defined ('TYPO3_MODE')) die ('Access denied.');
> t3lib_extMgm::addStaticFile('yourext','static','Your name');
> ?>
but what about the old system using ext_typoscript_setup.txt and
ext_typoscript_constants.txt
- they are automatic used without need to add those lines to ext_tables.php
What is - or is there any - advance using
> yourext/static/constants.txt
> yourext/static/setup.txt
instead of
> yourext/ext_typoscript_constants.txt
> yourext/ext_typoscript_setup.txt
More information about the TYPO3-english
mailing list