[Typo3-dev] How to create an UPDATE-Option in my plugin ?
Stefan Geith
typo3dev at geithware.de
Thu Mar 31 09:33:56 CEST 2005
Zach Davis schrieb:
> Stefan Geith wrote:
>> When a new Version of my Plugin uses some db-field in
>> another way than before, then I must have an Update-Function,
>> when updating to the new Version - like in tt_news, where
>> the category-filed was changed.
>>
>> I have seen, that I must create a class-file named
>> "class.ext_update.php", but I can't find information
>> about the contents of this file an how it is
>> integrated in typo3.
>
>
> Make class.ext_update.php and put two functions in it. Call one "access"
> -- this is called by typo3, I think, and it checks if the script
> can/should be run. If access returns true, typo3 calls another function
> called "main", which then does whatever you want it to do. This is how
> I did it in the chc_forum extension -- might be helpful to look at the
> update script in there.
Aaaah thats it: no need to 'register' the function; simply correct
name of file an functions and it works ... :)
Thanks for help !
-
Stefan
More information about the TYPO3-dev
mailing list