Issue Feature Closed

#29423Add "if" function to includeCSS and includeJS TS object

Alexander Grein 09/01/11, 16:21 updated 10/23/17, 22:20

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

Reviews 0

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