Part of the Views ecosystem · 286 projects
This module provides a way to randomly sort views results in a repeatable way using a seed. This allows for stable paging of randomized content and can be configured to reset the seed after a set time or reuse it from another view.
Adds a random views order handler with a seed.
The seed value is generated based on the current timestamp, which is used as the seed value, producing a repeatable sequence of column values. This makes it possible to have paging and not have items show up twice.
Seed value can be flexibly configured per view display to expire after a predefined time or a custom number of seconds, or reused from another view display.
Configuration:
- In the View's Sort criteria, add the "Random seed" sort plugin.
- In the plugin settings, you can reuse a seed from another View display using "Reuse seed from another view display".
- Configure the "User seed type" and "Reset seed" options as needed.
More info:
- MySQL: http://dev.mysql.com/doc/refman/5.0/en/mathematical-functions.html#funct... about RAND() and the optional integer argument.
- PostgreSQL: http://www.postgresql.org/docs/current/interactive/functions-math.html about RANDOM() and the 'select setseed' function.
Ask your assistant about Views random seed
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
More in the Views ecosystem
Most installed first
Activity
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 8.x-1.3 | Stable | 10–11 | Aug 3, 2024 |