[TYPO3-mvc] Re: Create predefined fe_groups when activating extension

Genser typo3 at genser.eu
Mon Dec 14 20:14:47 CET 2015


And here is an other idea:
The file class.ext_update.php in an extension's root directory can be used to perform updates that are necessary after an extension update (e.g. when the data model changed). 

Here's my demo code:
http://pastebin.com/HTduuSBQ

It checks if the groups 'GROUP1' and 'GROUP2' exist. If they don't, it displays an update button in the extension manager (right next to the extension's version No.). If you click it, it will ask for a Page ID to create the groups on , and create them.


More information about the TYPO3-project-typo3v4mvc mailing list