Hello Forum,
I have recently built a site using this method of mobile detection by Goran, I am sure others have used this method for mobile detection too.
My question, is there a way to add a "View Full Version" or "View Full SIte" link that disables the mobile stylesheet and use the original stylesheet for that session?
I think it is important the user has the option to view the full version by choice.
The site, by the way, can be found here:
http://kerikerifigs.co.nz/
Thanks in advance.
"View Full Version" on mobile devices
Re: "View Full Version" on mobile devices
Has anyone a tip how to achieve this?
Re: "View Full Version" on mobile devices
Give the visitor a link "show desktop view" or something. You should set a cookie "show_desktop" using http://www.cmscanbesimple.org/blog/set- ... ug-cookies to save this.
You can by-pass the mobile detection. Something like (untested):
Code: Select all
{setCookies days='1' show_desktop='true'}
Code: Select all
{if $smarty.cookies.show_desktop != 'true'}
{mobile}{capture assign='mobiletemp'}{$mobile_detect}{/capture}
{/if}
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: "View Full Version" on mobile devices
Thanks!
I think this is solved for now. I didn't write the first post (I just bumped the topic) so I can't mark this as "solved".
I think this is solved for now. I didn't write the first post (I just bumped the topic) so I can't mark this as "solved".