[TYPO3-dev] Special actions while extension-installation/-deinstallation

Bernhard Kraft kraftb at kraftb.at
Sat Jul 8 00:21:00 CEST 2006


Joerg Schoppet wrote:

> Create a file with content in typo3conf and insert an include statement
> of this file in localconf.php?

If you put code into an file called:

ext_localconf.php

in your extension directory it will get included whenever your extension "is"
installed (not when it "gets" installed - meaning not during the action of installing
but after installation for every call to the BE & FE the code in this file is included.)

But beware that the contents of this file get cached and you have to press the Red "clear
cache" button after every change in the ext_localconf.php file.

Have a look at other extensions (like tt_news) what they put in their ext_localconf.php.

there is also an ext_tables.php but this does not get included all the time (FE & BE).


greets,
Bernhard
-- 
----------------------------------------------------------------------
"Freiheit ist immer auch die Freiheit des Andersdenkenden"
Rosa Luxemburg, 1871 - 1919
----------------------------------------------------------------------
[[ http://think-open.at | Open source company ]]




More information about the TYPO3-dev mailing list