Issue Bug Closed

#17315Unable to provide "version" with e.g. includeJS / patch to use filemtime always

Daniel Hahler 05/18/07, 12:02 updated 03/29/11, 14:18

Description

Using Typoskript like
page.includeJS.jquery = fileadmin/rsc/js/jquery.js?v=X
fails, because Typo3 will not include the Javascript file at all ($GLOBALS[‘TSFE’]->tmpl->getFileName fails).

There are two solutions to this:
1. Fix/Extend the current approach and use a method which will ignore anything after “?” in the filename, but return what is given there
2. Always attach the value of filemtime() for the found file, because this is what is wanted most of the time (this is what the patch provides).
3. Allow to give arbitrary filenames, so that you can use e.g. dynamic URLs at all.

(issue imported from #M5646)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.