/o//commerce-media/accounts/-1/images/18464454?download=true
This app uses Maxmind GeoLite2 Country CSV database. You download that database from here http://dev.maxmind.com/geoip/geoip2/geolite2/#Downloads and then use an interface that is also provided by this app to import that data into Liferay. You won't need to use an external service anymore to provide Geo IP functionalities in your portal.
To use this service in your portlets or templates use this code:
<script type="text/javascript">
Liferay.Service(
'/geo-location-services-portlet.geolocations/get-location',
{
IP: '8.8.8.8'
},
function(obj) {
alert(obj);
}
);
</script>
or if you prefer to use JQuery use this one:
<script type="text/javascript">
$.get( "/api/jsonws/geo-location-services-portlet.geolocations/get-location/IP/8.8.8.8", function(data, status) {
alert(data);
});
</script>
Entwickler
Publisher Date
January 22, 2024
Deployment Method
Liferay Self-Hosted
Liferay PaaS
App Type
Version
Unterstützte Versionen
Standard Price
Help and Support
Link teilen
HTML Example
A paragraph is a self-contained unit of a discourse in writing dealing with a particular point or idea. Paragraphs are usually an expected part of formal writing, used to organize longer prose.