Project

General

Profile

Actions

Feature #17196

closed

Constants in conditions

Added by Bjrn Kraus over 17 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2007-04-10
Due date:
% Done:

0%

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

Description

Although it is possible to have customized conditions in TypoScript using user functions it's common request to have conditions that relies on constants. The code could look like this:

[constants]
color = red

[setup]

[{$color} = red, yellow]
text = Red or yellow text
[global]
text = Blue text
[end]

(issue imported from #M5388)

Actions

Also available in: Atom PDF