plainblack.com
Username Password
search
Bookmark and Share
Subscribe

mobile

I'm starting this wiki, because I can't find anything about mobile friendly websites using webgui.

It appears that 7.7.6 is the first that this new option appeared. But I know that 7.9.33 has it for sure.

There is a new setting under Settings -> UI-> called "Use Mobile Style" when you enable this by setting this to "yes", this will add two additional options under a page layout's display properties. "mobile style template" and "mobile template" (page layout template). 

When enabled, these alternate templates are used when the browser's user agent string matches the list set in the site's config file (/data/WebGUI/etc). By default in 7.7.33-stable, the supported mobileUserAgents are these:

"mobileUserAgents" : [
  "AvantGo",
  "DoCoMo",
  "Vodafone",
  "EudoraWeb",
  "Minimo",
  "UP\\.Browser",
  "PLink",
  "Plucker",
  "NetFront",
  "^WM5 PIE$",
  "Xiino",
  "iPhone",
  "Opera Mobi",
  "BlackBerry",
  "Opera Mini",
  "HP iPAQ",
  "IEMobile",
  "Profile/MIDP",
  "Smartphone",
  "Symbian ?OS",
  "J2ME/MIDP",
  "PalmSource",
  "PalmOS",
  "Windows CE",
  "Opera Mini"
],

These templates only applies to the Style used by Assets.  However, since it's a different style, you can give it different macros and direct them to different pages for logging in, or other user functions.

For example, instead of a link to ?op=auth;method=init which uses the User Function Style, use the LoginBox macro and a custom template to build a more mobile friendly login page.


These links may be of interest:

http://www.webgui.org/etcetera/use-mobile-style

http://www.webgui.org/etcetera/mobile-version-of-site

http://www.webgui.org/forums/design/responsive-design/3

http://www.webgui.org/user-guides/webgui-administrators-guide/webgui-administrators-guide/webgui-config-file See: mobileUserAgents

http://detectmobilebrowser.com/

Keywords: mobile

Search | Most Popular | Recent Changes | Wiki Home
© 2018 Plain Black Corporation | All Rights Reserved