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 #1

Updated by Gerrit Code Review about 11 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/19835

Actions #2

Updated by Gerrit Code Review about 11 years ago

Patch set 1 for branch TYPO3_6-0 has been pushed to the review server.
It is available at https://review.typo3.org/19838

Actions #3

Updated by Gerrit Code Review about 11 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/19835

Actions #4

Updated by Anonymous almost 11 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #5

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF