[TYPO3-core] RFC: Put JavaScript files into separate directory

Benjamin Mack mack at xnos.org
Tue Sep 25 15:30:15 CEST 2007


Hey olli,

great idea!

I wanted to do this for such a long time.

I propose "js" (why name it long than needed to) and the files simple 
"tree.js" or "md5.js" in there.

So +1.


I'd also like to have a small BE function called 
"includeExternalJavascriptFile(js/tree.js)";
that adds the
<script type"..." src="backpath/js/tree.js"></script>
to the JSLibArray function I introduced with the JSLib function, so this 
stuff doesn't get mixed up with the inline code (especially with the 
wrapScriptTags stuff.

What do you think?


greetings,
benni.
-SDG-

www.xnos.de // www.xnos.org


Oliver Hader wrote:
> Hi,
> 
> what do you think about moving the JavaScript files to a separate
> directory in ./typo3/ and ./t3lib/, like e.g. ./typo3/jslib/ and
> ./t3lib/jslib/? This new directories could also have the name 'jsfunc',
> instead of 'jslib'...
> 
> The candidates would be:
> ./typo3/jsfunc.tbe_editor.js
> ./typo3/md5.js (+ renaming to jslib.md5.js or jsfunc.md5.js)
> ./typo3/tab.js (+ renaming)
> ./typo3/tree.js (+ renaming)
> ./t3lib/jsfunc.evalfield.js
> ./t3lib/jsfunc.inline.js
> ./t3lib/jsfunc.menu.js
> ./t3lib/jsfunc.updateform.js
> ./t3lib/jsfunc.validateform.js
> 
> What do you think?
> 
> 
> olly


More information about the TYPO3-team-core mailing list