Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Views random seed

Security covered Maintenance fixes only 3,488 sites

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:

  1. In the View's Sort criteria, add the "Random seed" sort plugin.
  2. In the plugin settings, you can reuse a seed from another View display using "Reuse seed from another view display".
  3. 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.

Drupal 10–11

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.

Activity

Tracked releases
1
Tracked since
Aug 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core PHP Release date
8.x-1.3 Stable 10–11 Aug 3, 2024