Project

General

Profile

Actions

Bug #17001

closed

config.linkVars check doesn't allow negative ranges

Added by Oliver Hader about 17 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2007-02-17
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.1
PHP Version:
5.0
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The newly introduced linkVars check in TYPO3 4.1 doesn't allow negative ranges.

Example:
config.linkVars = my_variable(1-5) is valid
config.linkVars = my_variable(-1-5) doesn't work
config.linkVars = my_variable(-1--3) doesn't work and looks very ugly

I suggest to use ".." as delimiter, e.g.
config.linVars = my_variable(-1..-3)

Possibly it is allowed in TYPO3 4.2 to use config.linkVars = tx_myext_pi1[var](1..-3), but we should change the delimiter from "" to ".." now.
(issue imported from #M5009)


Files

0005009.patch (1.16 KB) 0005009.patch Administrator Admin, 2007-02-17 11:08
Actions #1

Updated by Michael Stucki about 17 years ago

I get the feeling of inconsistency here. I agree that -5--1 looks ugly, but if you insert spaces between, it is not so bad anymore:

config.linkVars = test(-1 - -3)

Personally I would favour this over adding a new separator. What do you think?

Actions #2

Updated by Oliver Hader about 17 years ago

I can live with reusing the "-" separator. But the code getting the lower and upper bound has to be changed anyway (currently "$range = explode('-',$needle);")

Actions #3

Updated by Alexander Opitz almost 11 years ago

  • Category deleted (Communication)
  • Status changed from New to Needs Feedback
  • Target version deleted (0)

As this report is very old, is the handling in newer TYPO3 CMS Versions (like 6.0/6.1) more like you expect it?

Actions #4

Updated by Alexander Opitz over 10 years ago

  • Status changed from Needs Feedback to Closed

No feedback for over 90 days.

Actions

Also available in: Atom PDF