Extension:MobileFrontend

Installation

 * 1) Copy the files from the SVN repository to your server (see the "Download" links in the sidebox).
 * 2) Add this link to the bottom of LocalSettings.php:

Configuration settings
The following variables can be defined in LocalSettings.php after calling require_once("$IP/extensions/MobileFrontend/MobileFrontend.php"):

Homepage
By default, the only content that a user will see on their project homepage is search, license, and action control. In order to see content you have to use the appropriate css selectors. See http://meta.wikimedia.org/wiki/Mobile_Projects/Mobile_Gateway#Mobile_homepage

More information
If you would like to test the mobile extension on a desktop browser or your device doesn't render the mobile version you can append the following key-value pair to the querystring: useFormat=mobile e.g., http://nomad.tesla.usability.wikimedia.org/index.php/Eby_J._Jose&useformat=mobile

If you would like to see the wap version of the mobile extension use: &useFormat=mobile-wap instead.

XHTML View



WML View



API
MobileFrontend has a really simple API available. If you add a &format=json you will get back a document that has the following sections


 * title ~ Page title
 * html ~ HTML body

ex. http://en.wikipedia.org/wiki/Main_Page?useformat=mobile&format=json object(stdClass)#1 (2) { ["title"]=> string(9) "Main Page" ["html"]=> string(5544) " Today's Featured Article   ....