I would like to know if is possible to get the same page view but with different styles for each site theme.
For example grid style for one theme and unformated style to another.
Thanks in advance
I would like to know if is possible to get the same page view but with different styles for each site theme.
For example grid style for one theme and unformated style to another.
Thanks in advance
Comments
Comment #1
dawehneryou could to perhaps something with hook_views_pre_query and alter the current setted display.
As alternative create two different views, and use panels to use two different panels.
Comment #2
merlinofchaos commentedYou could, in theory, use hook_views_pre_build(), check the theme and change the style via $view->current_display->set_option('style_plugin', 'plugin') and also set the style options. You'll need to get those values from an export, probably, that's the safest way to be sure to get all the data right.
Comment #3
merlinofchaos commentedI don't have any better advice, and I doubt you'll find other better advice, so might as well mark the issue fixed to get it out of the open list.
Comment #4
RAFA3L commentedThanks!
But I decided to create a custom menu with links to a custom views.