You are here

README.txt in Mobile Switch 7

Same filename and directory in other branches
  1. 6 README.txt
  2. 7.2 README.txt
Mobile Switch module

Simple automatic theme switch for mobile devices, detected by browscap.

DEPENDENCIES
------------

  - Drupal 7.
  - The Browscap module from drupal.org/project/browscap.

RECOMMENDED
-----------

  - The Mobile Switch Block module from drupal.org/project/mobile_switch_block.

INSTALL
-------

  1) Copy the Mobile Switch folder to the modules folder in your installation.
     Usually this is sites/all/modules.
     Or use the UI and install it via admin/modules/install.

  2) In your Drupal site, enable the module under Administration -> Modules.
    /admin/modules

ADMINISTER
----------

  1) Administer themes under Appearance.
     /admin/appearance

     - Enable your preffered mobile theme (Not set as default).
     - Use as default theme a 'not mobile theme'.

  2) Administer the Mobile Switch module under:
     Administration -> Configuration -> User interface
     /admin/config/user-interface/mobile-switch

     - Choose your mobile theme.

     If a theme used as mobile theme, their displayed informations on the
     Appearance administration page are altered for better visualisation.

     A Mobile Switch mobile theme is default not available on administration
     pages and in the maintenance mode.

     Mobile theme on administration pages

       Configure the 'Administration usage' in the module 'Basic settings' to
       enable the use of the mobile theme on administration pages.

     Mobile device prevention

       It is possible to bypass the automatic switching to the mobile theme for
       mobile devices.
       This is useful, for example, to exclude large tablets for the theme
       switching.

       To use this,

       administer the 'Advanced' settings under:
       Administration -> Configuration -> User interface -> Mobile Switch
       /admin/config/user-interface/mobile-switch/advanced

       enable the 'Use preventing' option and configure the user agent strings
       for such devices.

       To test this feature, without a real mobile device, it is a good
       solution to use the desktop browser with a user agent switcher extension
       and custom defined user agents.

     For the development of a web site

       Administer the 'Development' settings under:
       Administration -> Configuration -> User interface -> Mobile Switch
       /admin/config/user-interface/mobile-switch/development

       a) Enable/disable the 'Developer modus'.

          If a desktop mobile emulator not detected from browscap it is
          possible to configure additional user agents.

       b) Enable/disable desktop browser usage of the mobile theme.

DEVELOPMENT
-----------

  Development with Mobile Switch.

  The module provides three system variables:

  1. mobile_switch_ismobiledevice
  2. mobile_switch_ismobiletheme
  3. theme_mobile

  - The value of the variables 1. and 2. is a boolean value.
  - The value of the variable 3. is FALSE or the machine name of the used theme.

EXTERNAL RECOURCES
------------------

  Mobile Emulators & Simulators: The Ultimate Guide
  http://www.mobilexweb.com/emulators

File

README.txt
View source
  1. Mobile Switch module
  2. Simple automatic theme switch for mobile devices, detected by browscap.
  3. DEPENDENCIES
  4. ------------
  5. - Drupal 7.
  6. - The Browscap module from drupal.org/project/browscap.
  7. RECOMMENDED
  8. -----------
  9. - The Mobile Switch Block module from drupal.org/project/mobile_switch_block.
  10. INSTALL
  11. -------
  12. 1) Copy the Mobile Switch folder to the modules folder in your installation.
  13. Usually this is sites/all/modules.
  14. Or use the UI and install it via admin/modules/install.
  15. 2) In your Drupal site, enable the module under Administration -> Modules.
  16. /admin/modules
  17. ADMINISTER
  18. ----------
  19. 1) Administer themes under Appearance.
  20. /admin/appearance
  21. - Enable your preffered mobile theme (Not set as default).
  22. - Use as default theme a 'not mobile theme'.
  23. 2) Administer the Mobile Switch module under:
  24. Administration -> Configuration -> User interface
  25. /admin/config/user-interface/mobile-switch
  26. - Choose your mobile theme.
  27. If a theme used as mobile theme, their displayed informations on the
  28. Appearance administration page are altered for better visualisation.
  29. A Mobile Switch mobile theme is default not available on administration
  30. pages and in the maintenance mode.
  31. Mobile theme on administration pages
  32. Configure the 'Administration usage' in the module 'Basic settings' to
  33. enable the use of the mobile theme on administration pages.
  34. Mobile device prevention
  35. It is possible to bypass the automatic switching to the mobile theme for
  36. mobile devices.
  37. This is useful, for example, to exclude large tablets for the theme
  38. switching.
  39. To use this,
  40. administer the 'Advanced' settings under:
  41. Administration -> Configuration -> User interface -> Mobile Switch
  42. /admin/config/user-interface/mobile-switch/advanced
  43. enable the 'Use preventing' option and configure the user agent strings
  44. for such devices.
  45. To test this feature, without a real mobile device, it is a good
  46. solution to use the desktop browser with a user agent switcher extension
  47. and custom defined user agents.
  48. For the development of a web site
  49. Administer the 'Development' settings under:
  50. Administration -> Configuration -> User interface -> Mobile Switch
  51. /admin/config/user-interface/mobile-switch/development
  52. a) Enable/disable the 'Developer modus'.
  53. If a desktop mobile emulator not detected from browscap it is
  54. possible to configure additional user agents.
  55. b) Enable/disable desktop browser usage of the mobile theme.
  56. DEVELOPMENT
  57. -----------
  58. Development with Mobile Switch.
  59. The module provides three system variables:
  60. 1. mobile_switch_ismobiledevice
  61. 2. mobile_switch_ismobiletheme
  62. 3. theme_mobile
  63. - The value of the variables 1. and 2. is a boolean value.
  64. - The value of the variable 3. is FALSE or the machine name of the used theme.
  65. EXTERNAL RECOURCES
  66. ------------------
  67. Mobile Emulators & Simulators: The Ultimate Guide
  68. http://www.mobilexweb.com/emulators