[TYPO3-core] RFC: [PAGE].includeJS, upload, create and edit JavaScript JS files

Michael Stucki michael at typo3.org
Wed Feb 8 23:31:02 CET 2006


Michael Stucki wrote:

> committed.

Documentation has been updated.

- michael

> Michael Stucki wrote:
> 
>> 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
> 

-- 
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/



More information about the TYPO3-team-core mailing list