Different page view for each theme

RAFA3L - June 26, 2009 - 16:13
Project:Views
Version:6.x-2.6
Component:page displays
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

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

#1

dereine - July 3, 2009 - 17:34

you 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.

#2

merlinofchaos - July 3, 2009 - 17:36

You 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.

#3

merlinofchaos - July 3, 2009 - 17:37
Status:active» fixed

I 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.

#4

RAFA3L - July 5, 2009 - 15:04

Thanks!

But I decided to create a custom menu with links to a custom views.

#5

System Message - July 19, 2009 - 15:10
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.