Jump to content

Erweiterung:MobileFrontend/Konfiguration

From mediawiki.org
This page is a translated version of the page Extension:MobileFrontend/Configuration and the translation is 55% complete.

MobileFrontend unterstützt verschiedene Konfigurations-Optionen die in der LocalSettings.php definiert werden können nach Eintrag von wfLoadExtension( 'MobileFrontend' ); oder require_once "$IP/extensions/MobileFrontend/MobileFrontend.php";.

Note that for a simple site adding $wgMFAutodetectMobileView = true; might be all you need to make it Just Work™.

All configuration options

All configuration options are details in the README.md file

Konfiguration der Mobile-Browser Auto-Erkennung

Konfiguriere die Hauptseite

Configuring a skin

Zur Zeit dieses Eintrags ist in MobileFrontend nur die Minerva-Oberfläche enthalten.

Diese kann überschrieben werden unter Verwendung von $wgDefaultMobileSkin

Standardmäßig ist dies so konfiguriert:

// $wgDefaultMobileSkin = 'vector'; // use Vector skin for your mobile site skin.
// $wgDefaultMobileSkin = 'timeless'; // Use Timeless skin for your mobile site skin.
$wgDefaultMobileSkin = 'minerva'; // Default - use Minerva as your mobile site skin.


Einrichtung von "In der Nähe"

MobileFrontend provides the Special:Nearby page with a little configuration. To get this to work a few optional steps are required:

  • Due to browser security you will need to be running a secure site over SSL: it is not possible to request a users location over HTTP
  • Installiere GeoData
  • Führe update.php aus
  • Füge in LocalSettings.php $wgMFNearby = true; hinzu
  • Add data to your articles to one or more pages {{#coordinates:37.786971|-122.399677|primary}} see the documentation for GeoData for syntax details

Alternatively you can use an alien MediaWiki instance for Nearby with the following 2 lines in your LocalSettings. The nearby endpoint will be used to find related content to a given location.

$wgMFNearbyEndpoint = 'http://en.m.wikipedia.org/w/api.php';
$wgMFNearby = true;