Project

General

Profile

Actions

Feature #20799

closed

Add a RANDOM cObject

Added by Fabrizio Branca over 14 years ago. Updated over 12 years ago.

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

100%

Estimated time:
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)


Files

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

Updated by Xavier Perseguers over 12 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?

Actions #2

Updated by Fabrizio Branca over 12 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...

Actions #3

Updated by Xavier Perseguers over 12 years ago

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

No need anymore

Actions

Also available in: Atom PDF