From 0f082b3c574c29fe05eda1fe01d9196a6857b10f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=B6ffler?= Date: Sat, 11 Apr 2015 21:31:35 +0200 Subject: [PATCH] [TASK] Adds documentation about Net_GeoIP usage --- Documentation/Faq/Index.rst | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Documentation/Faq/Index.rst b/Documentation/Faq/Index.rst index 914aea6..79b53f5 100644 --- a/Documentation/Faq/Index.rst +++ b/Documentation/Faq/Index.rst @@ -34,3 +34,24 @@ Wikipedia offers a list of the ISO 639-1 codes. The actual codes used depends on the version of static\_info\_tables you have installed. Using the latest version is of course recommended. + +How can I use the PEAR package Net_GeoIP? +""""""""""""""""""""""""""""""""""""""""" + +You have to install the PEAR package `Net_GeoIP`_. +After that you only need a GeoIP database to get the origin country by +the visitor's IP address. +A database (with CC license) can be found on the website of `Maxmind`_. +After that you have to define the path to this database file in +TypoScript: + +.. code-block:: typoscript + + plugin.tx_rlmplanguagedetection_pi1 { + pathToDatabaseForGeoIPData = EXT:another_extension/path/to/file + } + + + +.. _Net_GeoIP: https://pear.php.net/package/Net_GeoIP +.. _Maxmind: http://dev.maxmind.com/geoip/legacy/geolite/ \ No newline at end of file