RSS 2.0
RSS 0.91
ATOM 0.3
February 4, 2011

New way to plug in Extension Manager

Category: Steffen Kamper, Core, TYPO3

As you may noticed, there is a new GUI for the Extension Manager. The application is based on tabs, where each tab holds an own application.

Normally you plug in as submodule like the kickstarter, then you get a new entry in the module menu. But then you have to build the complete module by your own.

So why not plug in existing GUI and reuse existing components of Extension Manager? Well, this will be possible with version 4.5.1. Let's see how to do.

Create a new extension with an ext_localconf.php, insert the hook there:

$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['em/classes/class.tx_em_extensionamager.php']['renderHook'][] = 'EXT:em_tools/class.tx_emtools.php:tx_emTools';

Then create the class for the hook:

class tx_emTools {

public function render($pageRenderer, &$settings, &$content) {
$path = t3lib_extMgm::extRelPath('em_tools');
$pageRenderer->addJsFile($path . 'GlobalFileEditor.js');

In the javascript file we reuse the filelist component of em and set the start point to the root of our installation.
This is done with the baseParam node: ''. Here the complete file:


title: 'Global File Editor',
xtype: 'extfilelist',
rootText: 'TYPO3',
rootIcon: 'sysext/t3skin/images/icons/apps/pagetree-root.png',
baseParams: {
extkey: 'em_tools',
node: ''
noWindowOpen: true

done! Sure this is very rough, but open / save will work through Extension Manager ExtDirect class. Fine tuning is missing for now, eg add new buttons to the GUI with own actions, or use other settings for allow edit then in global context.

I look forward to others trying out and finding glitches just in time to be fixed for 4.5.1 :)


comment #1
Gravatar: Helmut Helmut February 8, 2011 16:59
The GUI is a big feature, I waited long for. Helpful and informative buzz typo3 posting!

comment #2
Gravatar: Charles Charles February 9, 2011 18:54
Hey, thanks for the tip Steffen!

comment #3
Gravatar: pooltrax pooltrax February 10, 2011 10:34
The new GUI for the extension manager is great! Working with Typo3 has become again better and smarter, thanks!

comment #4
Gravatar: Steffen Steffen February 10, 2011 12:26
I'm still improving it. Work on file/folder creation, drag&drop in filetree, show diff of changes etc.

comment #5
Gravatar: Felix Felix February 14, 2011 15:08
Nice to hear Steffen will improve the new EM. It's pretty fancy but not usable for every day production usage as there is no changelist and no conf update after updating a extension.

comment #6
Gravatar: Juergen Juergen February 18, 2011 15:22
Very cool tip, Thank you very much!

comment #7
Gravatar: Farmerama Farmerama February 21, 2011 13:29
Thank you, it's very useable, i'll try this on my new typo3 installation

Sorry, comments are closed for this post.