[TYPO3-core] RFC: #10144: enable JS-Libs in BE
Steffen Kamper
info at sk-typo3.de
Thu Jan 15 11:17:46 CET 2009
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
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 10144.diff
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090115/9bccb969/attachment.txt
More information about the TYPO3-team-core
mailing list