Actions
Feature #70964
closedAllow sorting = rand() for special = categories (HMENU)
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2015-10-23
Due date:
% Done:
0%
Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:
Description
The MySQL function "rand()" can be used in some HMENU objects as a 'sorting' string, as it is directly inserted after "ORDER BY" in the sql statement. In the "special = categories" menu though, only existing fields are allowed.
It should be possible (and easy) to apply random ordering in category menus, e.g. for menus containing a limited amount of related pages. To keep in line with the unoffical way of randomizing other menu lists, the expression "rand()" could be used.
10 = HMENU 10 { special = categories special { value = 1 sorting = rand() } [...] }
Files
Actions