[TYPO3-dev] ext_typoscript_setup.txt

Tapio Markula tapio.markula at dnainternet.net
Tue Jul 25 19:00:38 CEST 2006


Ernesto Baschny [cron IT] wrote:

> Maybe you could try to explain it?

it is possible to define for any plugin basic configuration,
when you install a plugin. You can give possibities for enable options.
Typo3 use the term 'Enable features'.
Maybe a little bit different words confused you.

With (feature) enable options you can put a swicth for example define
required TS inside ext_localconf.php *or* use an external TS File and 
install required TS file later for only some branch using 'Include 
static templates (from extensions):' (in this case the switch must be 
both in ext_localconf.php and ext_tables.php).

I put those alternatives for 'tm_contentaccess'.

In principle by 'Enable features' you can always define such
options, that it is not necessary to read any documentation and users
can get the plugin working just installing it and resetting some
values, which can be found from the basic configuration of the plugin.

It would be nice, if default values would work always, when installing 
the plugin works plug-and-play.

But that is not always possible. What often are problematic, are uid for 
page(s) and path informations. An example of path could be desirable.

BTW. I tried to use
$constants= t3lib_extMgm::extPath($_EXTKEY) .'pi1/static/constants.txt';
$constants= " ".include($constants)." ";

...
t3lib_extMgm::addTypoScriptConstants($constants);
but I got error messages, for example
main(/home/httpd/vhosts/t3test.xetpoint.com/httpdocs/typo3conf/ext/tm_contentaccess/pi1/static/constants.txt 
): failed to open stream: No such file or directory

The file exits.
I must just put the TS directly.




More information about the TYPO3-dev mailing list