Quantcast
Channel: DevNet Questions
Viewing all articles
Browse latest Browse all 8832

Detect Location geolocation

$
0
0
hello kentico team i am trying to detect the current location is there any method in kentico to use it and get the city name i try some this code but didnt work any one have idea thanks {%if(AnalyticsContext.CurrentGeoLocation.City != null) {%} your food in {% AnalyticsContext.CurrentGeoLocation.City %} {% } #%} {% else{ %} there is no food in this location {% } #%}

Viewing all articles
Browse latest Browse all 8832

Trending Articles