Info |
---|
title | Released in FarCry 6.2 |
---|
|
One of the cool new features of FarCry 6.2 is the introduction of Mobile and Tablet webskins. While fully responsive designs are cool and all, very often its helpful to use a hybrid approach and deliver *different* views to different device formats. |
...
Code Block |
---|
title | Add switching JS to your header files |
---|
|
<skin:loadJS id="jquery" /><!--- not required for farcry core 7.x --->
<skin:loadJS id="farcry-devicetype" /> |
...
Code Block |
---|
title | Adding links to your footer (or wherever) |
---|
|
<<a a class="fc-switch-device-desktop" href="http://##">Full Site</a>
OR
<<a a class="fc-switch-device-mobile" href="http://##">Mobile Site</a> |
(Similarly for switching to tablet webskins you would use the classname "fc-switch-device-tablet" and place the relevant JS in your tabletHeaderStandard, etc).
...