November Happy Hour will be moved to Thursday December 5th.

How to switch between different DisplayChannels?

Vote:
 

Hi,
For my site we are making a custom display of the frontpage for mobile users. I have made a mobile display channel and mobile template to be displayed when people visit the frontpage with a mobile device. But I woluld like to make a link where the user can choose to see the desktop version of the page if they click the link. How can I do this? I would also like it so the users can switch back to the mobile version again also.

Thanks for any help.

#70616
Apr 24, 2013 13:50
Vote:
 

I figured it out by myself.
I send a request param with the url from the link and in the IsActive() method of my MobileDisplayChannel class I check for this parameter as well as which deviced that is used.

#70650
Apr 24, 2013 16:20
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.