Perfidy Random Field

The Ministry of Minor Perfidy Bureau of Retributive Software Development has caused to be created a new wonder: The Perfidy Random Field Module. Great was the suffering of the kobolds and gnomes laboring in the code mines to produce this gem of modern internet technology.

You can see this amazing tool just over there to the left, where it magically displays a different slogan every time you refresh the page. In a perfect world, this gimcrackery will distract you from the years-long gaps in posting that regularly occur here. Some day, we might even conceive of other uses for it.

The Random Field module is an extension of the Drupal CMS, that is, if you have a Drupal site you can install the module in the normal manner. Once installed, you can add a random field anywhere you'd normally be able to add a field - for example, to a node or block or paragraph. There are other means of accomplishing the display of random elements on a page in Drupal, but this one is pretty easy to use. On the random field configuration page, you can create any number of lists containing the elements you'd like to be randomized. You can even give those lists names! You can, miraculously, even have lists of imagessadly, though, there's no integration with the media or media library modules..

Then, when you create a new content item that has a random field attached to it, you merely select the list you'd like to useor no list at all, if that's how you want to roll.. The random field module will then quietly and competently take care of showing your users one randomly selected item from the list you picked. It even makes sure that you don't get the same one twice in row††which technically is a serious departure from actual randomness, but it feels more random..

You can find the random field module here on the Drupal site. Enjoy!

Posted by Buckethead Buckethead on   |   § 0

§   Say Something