Project

General

Profile

Actions

Task #47159

closed

Currently it isn't possible to pass multiple params to user functions within typoscript conditions. Why?

Added by Daniel Hürtgen about 11 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Category:
TypoScript
Target version:
Start date:
2013-04-12
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.0
PHP Version:
5.4
Tags:
Complexity:
easy
Sprint Focus:

Description

Currrently you can use user functions for typoscript conditions and pass one parameter to your created functions. If you have more than parameter, you must create a workaround and use an delimiter other than comma an split it up in your userfunctions to separate them.

But there is no reason to that.
TYPO3\CMS\Core\Configuration\TypoScript\ConditionMatching\AbstractConditionMatcher line 405 following split up the function params into an array, but pass only the first param to your function? Why.

Is there a fundamental reason, why we should/could not do that?


Related issues 1 (0 open1 closed)

Precedes TYPO3 Core - Bug #47301: Improve userFunc parameter parsingClosed2013-04-17

Actions
Actions

Also available in: Atom PDF