Feature #20799

Add a RANDOM cObject

Added by Fabrizio Branca over 10 years ago. Updated over 8 years ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-07-31
Due date:
% Done:

100%

PHP Version:
5.2
Tags:
Complexity:
Sprint Focus:

Description

Problem:
Sometimes you would like to have a cObject selected randomly from a list of cObjects. This feature can be used for different purposes.

Solution:
Add a new cObject "RANDOM"

Example:
page.20 = RANDOM
page.20 {
10 = TEXT
10.value = a
20 = TEXT
20.value = b
30 = TEXT
30.value = c
}

page.30 = COA_INT
page.30.10 = RANDOM
page.30.10 {
10 = TEXT
10.value = a
20 = TEXT
20.value = b
30 = TEXT
30.value = c
}

(issue imported from #M11606)

11606.patch View (1.13 KB) Administrator Admin, 2009-07-31 10:26

History

#1 Updated by Xavier Perseguers over 8 years ago

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

listNum now supports "rand": http://wiki.typo3.org/TYPO3_4.6#TypoScript.2FFrontend

Does it fullfill your needs or not?

#2 Updated by Fabrizio Branca over 8 years ago

listNum = rand is nice! I think that should do the trick. With some additional TypoScript should be easy to realize my examples from the original ticket.

This ticket is two years old. I currently don't have any use case for this. If nobody else is watching this ticket, I would suggest to close and forget about it...

#3 Updated by Xavier Perseguers over 8 years ago

  • Status changed from Needs Feedback to Rejected
  • % Done changed from 0 to 100

No need anymore

Also available in: Atom PDF