I wonder if somebody has succeed with altering a view style plugin dynamically? Say for example you have a view and want the user to be able to choose between grid and table display by some sort of exposed option. One solution would be having two different displays with different url's but I'm interested to know if it's possible to achieve with one display only and then alter the style plugin in one of the pre hooks.
Thanks in advance!

Comments

dawehner’s picture

Status: Active » Fixed

There is a module for that: http://drupal.org/project/views_modes

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.