Project

General

Profile

Actions

Feature #29423

closed

Add "if" function to includeCSS and includeJS TS object

Added by Alexander Grein over 12 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
Start date:
2011-09-01
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
easy
Sprint Focus:

Description

Wouldn't it be nice to have the possibility to include a css or javascript depending on a constant?

Example:

page.includeCSS {
colorbox = {$plugin.rzcolorbox.cssPath}
colorbox.if.isTrue = {$plugin.rzcolorbox.cssPath}
colorbox.if.ifFalse = {$plugin.rzcolorbox.deactivate}
}

Usefull also for:

includeLibs
includeJS
includeJSFooter

Actions

Also available in: Atom PDF