[TYPO3-ect] New Extension JS-Manager - First Version

Joerg Schoppet joerg at schoppet.de
Wed Nov 7 10:30:21 CET 2007


Joerg Schoppet wrote:
> Hi,
> 
> after some discussion with Steffen Kamper about a general way for
> including external js-libraries, here are my thoughts about it:
> 
> The extension will be called "jsmanager". The extension on its own can
> do nothing :-)
> 
> Every js-library have to be added to the ter with its own extension
> (e.g. jquery, extjs)
> 
> Each extension have to implement an interface of jsmanager and have to
> register itself to jsmanager.
> 
> After this, on each page, where you need it, you can include a
> ts-template for jsmanager, within this there is some predefined ts-code.
> jsmanager can now check each condition (saying which jslib to include
> and calls a predefined (interface) method of the adequate class in the
> specific js-lib-extension. the class in each js-lib-extension is
> responsible for defining all the necessary script-, css-tags and
> returning them to jsmanager.
> After processing the config, jsmanager does the inclusing in the page-hader.
> 
> Additionally there will be perhaps a programming-interface to call the
> jsmanager-functions directly within an extension.
> 
> The last step will be a backend-module, which lists all registered
> js-libs and the possible config-options.
> 
> 
> Any comments?
> 
> Regards
> 
> Joerg Schoppet

Hi,

so here it is:
check out from typo3xdev tx_jsmanager/trunk

in the example-directory is another extension (xyz), which demonstrates
the usage.

Any comments would be really nice.

If this will be the final concept, I will also begin to rewrite extjs,
jquery and script.aculo.us.

Joerg


More information about the TYPO3-team-extension-coordination mailing list