Why this module ?

This module won't be probably used by a lot of people but I needed it in my own personnal project, so, I'm releasing the source.

I needed to create blocks who display one random block and also one showing a slideshow of random blocks.
Those random blocks were from Views, custom blocks, etc etc.
Creating a custom module to display random blocks would have been much easier, but I wanted to use Views, so I can configure much more things.

Maybe there are some other solutions, but the best solution I found was to use Bean and this module.

I've created a Bean block type with a "Views field" field, which allows me to include the result of a view in the block.
Then, I've created a new View, listing the Block entities (from Bean), using the "Block row" row style, selecting the field for the title and for the content and I was done.

If you find this module worthless because you have a better idea on how to do that, please, let me know !

Use cases

  • You want to display a list of results displayed as system block.
  • You want to display a block at random in a block (I know that sounds weird, but it works!)
  • You want to display a slideshow of random blocks.

This module provides

  • A Views row plugin: "Block row"

Suggested dependencies

Related modules

Project information

Releases