Force Desktop Override on Mobile Pages

Product: CMS

Version: CMS 10, 10.x, CMS 8, 8.x, CMS 9, 9.x

Published: July 8, 2013

Last updated: 1/30/2021

Comments:
0 Comments

Description

It is a common feature in mobile implementations to integrate a link that allows a user to view a mobile page in its full desktop version. In order to remain in a selected view mode when linking to other pages or to switch again to the original view and remain in it, it is easier to pivot the view mode on a cookie rather than managing it in the code.

Step-by-Step

Setting a cookie to either mobile or desktop mode can be implemented in 3 simple steps:

  1. Upload folder mobile-cookies.js to the prebuilt directory of the site:   .zip file "mobile-cookies.js",
  2. Reference mobile-cookies.js in the head section:  Sample,
  3. Add variable siteType to the site's list of variables:  Variable sample,
  4. Set the link to another view and trigger the cookie:  Link sample.

Comments

There are no comments yet.