[TYPO3-core] RFC: [PAGE].includeJS, upload, create and edit JavaScript JS files
Michael Stucki
michael at typo3.org
Mon Feb 6 00:04:02 CET 2006
This is a CVS patch request.
Problem:
There is no simple way to upload, edit and include JavaScript files in
template records.
Solution:
Implement the feature according to the patch which was submitted by Johannes
Vockeroth (very good work, btw.)
Documentation:
TSref, section "PAGE"
includeJS.[array]
resource
Description:
Inserts one or more (Java)Scripts (<script> tags)
The file definition must be a valid "resource" datatype, otherwise nothing is
inserted.
Optional properties:
.style - setting the MIME type of the Script - default: text/javascript
Example:
includeJS {
file1 = fileadmin/helloworld.js
file1.type = application/x-javascript
file2 = javascript_uploaded_to_template*.js
file2.type = application/javascript
file3 = javascript_as_default_text_javascript*.js
}
Comments:
Added a 2nd patch "bug_2272_postCleanup.diff" which contains some
none-functional cleanup-changes.
Regards, michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug_2272.diff
Type: text/x-diff
Size: 2781 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060206/48bc5d37/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug_2272_postCleanup.diff
Type: text/x-diff
Size: 5273 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060206/48bc5d37/attachment-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060206/48bc5d37/attachment.pgp
More information about the TYPO3-team-core
mailing list