Feature #17598

includeCSS & includeJS should look if Ext is loaded

Added by Georg Ringer over 13 years ago. Updated over 7 years ago.

Should have
Content Rendering
Target version:
Start date:
Due date:
% Done:


Estimated time:
PHP Version:
Sprint Focus:


if I include a CSS/JS with
page.includeCSS.file1 = EXT:foo/bla.css then it should get checked if EXT "foo" is loaded. Same for includeJS.

checking class.tslib_pagegen.php there are more such cases. I guess best place is inside $GLOBALS['TSFE']->tmpl->getFileName()

but I could be wrong too

(issue imported from #M6335)


Updated by Ben van 't Ende over 13 years ago

Why would you want to load it like that? It makes no sense to me. The behaviour seems ok to me. You call a file directly.


Updated by Georg Ringer over 13 years ago

I got several extensions which don't have any plugin, so there is no other chance than direct TS and it makes no sense to include the code if the ext is not installed.


Updated by Alexander Opitz almost 8 years ago

  • Status changed from New to Needs Feedback
  • Target version deleted (0)
  • TYPO3 Version set to 4.1

As this report is very old, is the handling in newer TYPO3 CMS Versions (like 6.0/6.1) more like you expect it?


Updated by Riccardo De Contardi almost 8 years ago

page.includeJS has the "if" property since TYPO3 4.7... is it enough?


Updated by Alexander Opitz over 7 years ago

  • Status changed from Needs Feedback to Closed

No feedback for over 90 days.

Also available in: Atom PDF