[TYPO3-project-4-3] ExtJS directory structure in 4.3 in broken

Dmitry Dulepov dmitry at typo3.org
Fri Jan 2 20:46:42 CET 2009


Hi!

I just noticed that ExtJS files in TYPO3 do not follow directory structure of ExtJS. Typically a library is unpacked and its directory structure is unchanged. For unknown reason TYPO3 contains adapters directly in the typo3/contrib/extjs, while in the source distribution they are located in the ./adapter/XYZ/ext-XYZ-adapter.js.

Changing directory structure is bad. Imagine if someone already made plugins that use ExtJS. Imagine that the site also uses 3rd party non–TYPO3 application with ExtJS. Normally you would wish to have a single copy of ExtJS and just make symlinks or use 'extJSpath' constant in the extension to point to ExtJS directory. This simplifies updates and ensures that client caching works for ExtJS files. It is quite important for practical ExtJS usage.

With the current ExtJS in TYPO3 using TYPO3's ExtJS is not possible from existing extensions or 3rd party applications because no application or extension will be able to find adapters due to non–standard directory structure.

So I propose to restore the proper directory structure of ExtJS:
- create typo3/contrib/extjs/adapters/prototype/
- move typo3/contrib/extjs/ext-prototype-adapter.js to typo3/contrib/extjs/adapters/prototype/
- create typo3/contrib/extjs/adapters/ext/
- move typo3/contrib/extjs/ext-base.js to typo3/contrib/extjs/adapters/ext/

This will make directory structure identical to the standard directory structure of ExtJS, which is normally expected by applications.

Does anyone have any motivated objections? :)

-- 
Dmitry Dulepov
TYPO3 core team
In the blog: http://typo3bloke.net/post-details/why_your_typo3_installation_can_be_slow/
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book


More information about the TYPO3-project-4-3 mailing list