Project

General

Profile

Actions

Feature #15420

closed

[PAGE].includeJS, upload, create and edit JavaScript JS files

Added by Johannes Vockeroth almost 19 years ago. Updated over 18 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2006-01-14
Due date:
% Done:

0%

Estimated time:
PHP Version:
4
Tags:
Complexity:
Sprint Focus:

Description

the old bug: it is not possible to change the list of file extensions for the template editor, because the list of allowed extensions is hardcoded in a core file (typo3/ext/tstemplate/ts/index.php line 60). So its not possible to allow uploading, creation and editing of JavaScript files by an extension.

the new feature: It will be possible to upload, create and edit JavaScript JS files in a template record. Furthermore it will be possible to include a JavaScript in the same way you include CSS stylesheets in TypoScript. With a new [PAGE] property .includeJS.

This feature is very helpful for AJAX and DHTML devlopers. It makes using Templates with JavaScripts more organized, because it won't be necessary any more to put .js files to the fileadmin/ folder or rename them. It will straigt forward extend the good concept of .includeCSS.

I added a ZIP with some additional Information (i.e. the documentation of new .includeJS property) and the three files, that has to be patched (I did so, with the CVS versions from 01-14-2006 - diffs included)

I described, how to patch an existing 3.8 installation at
http://web.inf.tu-dresden.de/~jv525052/typo3/190.0.html

(issue imported from #M2272)


Files

page.includeJS.zip (38.8 KB) page.includeJS.zip Administrator Admin, 2006-01-14 20:41
bug_2272.diff (2.72 KB) bug_2272.diff Administrator Admin, 2006-02-05 23:56
Actions

Also available in: Atom PDF