[TYPO3-core] RFC #11606: [Feature]: Add a RANDOM cObject

Fabrizio Branca news at _REMOVETHIS_fabrizio-branca.de
Fri Jul 31 10:28:33 CEST 2009


This is an SVN patch request.

Type: New feature

Bugtracker references:
http://bugs.typo3.org/view.php?id=11606

Branches:
trunk

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"


Notes/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
}

Bye,

Fabrizio
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 11606.patch
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090731/f6886f9c/attachment.txt 


More information about the TYPO3-team-core mailing list