[TYPO3-core] RFC: #10144: enable JS-Libs in BE

Steffen Kamper info at sk-typo3.de
Sun Feb 1 16:03:13 CET 2009


Hi,

REMINDER #1

This is a complete suggestion for including prototype, scriptacoulus and 
extJS in BE with very easy calls.

vg Steffen

Steffen Kamper schrieb:
> Hi,
> 
> This is SVN patch request.
> 
> Type: Feature
> 
> Branches: trunk
> 
> BT reference: http://bugs.typo3.org/view.php?id=10144
> 
> Problem:
> after i made a patch for extJS only some problems has been debunked.
> 
> * there are 3 libs in contrib that are used: prototype, scriptaculous 
> and extJS
> * load order is important
> * there must be an easy way to load or make additions
> 
> Solution:
> provide flags/function to include JSlibs.
> 
> Attached patch gives you all to do it with very easy calls. The order of 
> calls are not important as the load order is given.
> Ext-adapter is choosen automatic dependend of prototype loaded
> 
> Scriptaculous Modules can easy be added by call. There is also a 
> dependency-check to load module 'effects' if it's necessary.
> 
> No double inclusion is possible, even with equal calls.
> 
> Here are samples how to call it:
> 
> $this->doc->loadExtJS();
> $this->doc->loadPrototype();
> $this->doc->loadScriptaculous();
> $this->doc->loadScriptaculous('all');
> $this->doc->loadScriptaculousModules('dragdrop');
> 
> There is an additional flag if you want to use debug-version of extJS, 
> just set the flag:
> 
> $this->doc->setExtJSDebug();
> 
> Additional:
> this patch depends on
> #10121: New template-function to add extJS inline code
> which is in this list too, and it adds the space.gif to the inline 
> section of extJS. If you want to test it without this patch just comment 
> out the call.
> 
> This patch is also a replace for RFC #10069 (not needed anymore)
> Also RFC #10122 is not important anymore.
> 
> vg Steffen
> vg Steffen
> 


More information about the TYPO3-team-core mailing list