Project

General

Profile

Actions

Feature #20799

closed

Add a RANDOM cObject

Added by Fabrizio Branca over 15 years ago. Updated about 13 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

Also available in: Atom PDF