[TYPO3-core] RFC: [PAGE].includeJS, upload, create and edit JavaScript JS files
Wolfgang Klinger
wolfgang at stufenlos.net
Mon Feb 6 08:50:59 CET 2006
*hiya!*
On Mon, 06 Feb 2006, Michael Stucki wrote the following:
> 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
what does $ss mean?
why don't you change these lines from
-------
$ss = $GLOBALS['TSFE']->tmpl->getFileName($JSfile);
if ($ss)
-------
to
-------
if ($GLOBALS['TSFE']->tmpl->getFileName($JSfile))
-------
as $ss is not used anywhere else?
just to make sure (without further investigation) usage is like:
-------
page = PAGE
page.includeJS {
...
}
-------
+1 if you change this "ss" variable name...
kind regards
Wolfgang
More information about the TYPO3-team-core
mailing list