Project

General

Profile

Actions

Feature #17196

closed

Constants in conditions

Added by Bjrn Kraus about 17 years ago. Updated over 13 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 #1

Updated by Popy no-lastname-given about 17 years ago

Constants are usable in TS conditions...

Actions #2

Updated by Bjrn Kraus about 17 years ago

In the way I described it?

If so please post the link for the TSref so I can proof it.

Actions

Also available in: Atom PDF