"View Full Version" on mobile devices

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
KarlDD
Forum Members
Forum Members
Posts: 15
Joined: Wed Jul 04, 2012 3:48 am

"View Full Version" on mobile devices

Post by KarlDD »

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.
urheat
Forum Members
Forum Members
Posts: 243
Joined: Sat Oct 17, 2009 6:50 am

Re: "View Full Version" on mobile devices

Post by urheat »

Has anyone a tip how to achieve this?
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: "View Full Version" on mobile devices

Post by Rolf »

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.

Code: Select all

{setCookies days='1' show_desktop='true'}
You can by-pass the mobile detection. Something like (untested):

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
- + - + - + - + - + - + -
Image
urheat
Forum Members
Forum Members
Posts: 243
Joined: Sat Oct 17, 2009 6:50 am

Re: "View Full Version" on mobile devices

Post by urheat »

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".
Post Reply

Return to “Layout and Design (CSS & HTML)”