Project

General

Profile

Actions

Feature #70964

closed

Allow sorting = rand() for special = categories (HMENU)

Added by Lars Büsing over 8 years ago. Updated about 4 years ago.

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

patchfile.patch (2.19 KB) patchfile.patch Lars Büsing, 2015-10-23 01:17

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #14026: Add new ordering "RAND()" to TYPO3 DB BackendRejected2011-03-24

Actions
Actions #1

Updated by Mathias Schreiber over 8 years ago

  • Target version deleted (next-patchlevel)
Actions #2

Updated by Susanne Moog about 4 years ago

  • Status changed from New to Closed

Due to low demand / low priority I'm going to close this issue now. If anyone takes time to implement it, simply open a new issue please. Thanks.

Actions

Also available in: Atom PDF