drupalcon washington

Views random seed

Guilty as charged: I didn't really do much work on PM during the conference, but I ended up releasing a new version of Nodes in block and a new module called Views random seed for views 2. The module adds a random order handler with seed. If a constant integer argument N is specified in the sql RAND() function, it is used as the seed value, which produces a repeatable sequence of column values. This makes it possible to have paging and not having items show up twice.

See http://dev.mysql.com/doc/refman/5.0/en/mathematical-functions.html#funct... for more info about RAND() and the optional integer argument.

Anyway, it was a cool week in DC and we're off to New York tomorrow, Turn on the Bright Lights!

Subscribe to RSS - drupalcon washington

You are here