Issue Feature Closed

#61489Add AbstractCondition to implement custom TypoScript Conditions

Benni Mack 09/09/14, 21:18 updated 10/19/17, 21:00

Description

In order to streamline conditions and make
TypoScript conditions more flexible, an abstract class
AbstractCondition is introduced. Any class can extend
this abstract class, and TypoScript seamlessly calls
the class’s main function that can completely flexibly
deal with the value that is set after the class.

possible conditions are:

[BigCompanyName\TypoScriptLovePackage\BennisTypoScriptCondition]

[BigCompanyName\TypoScriptLovePackage\BennisTypoScriptCondition = 7]

[BigCompanyName\TypoScriptLovePackage\BennisTypoScriptCondition = 7, != 6]

where the TypoScript Condition can deal with =/!= etc by itself.

Additionally, this change fixes one bug, where the
AbstractConditionMatcher would check on a condition name
and would not match, then there is an additional run.

Reviews 3