Configuring MaxMind for CMS 12 for Visitor Groups

  • Updated

After installing MaxMind for CMS 12 and adding the provider to the services at startup, when attempting to create a group using the Geographic Location Criterion the option to configure the criterion is grayed out and nothing can be entered.




Adding the following resolved this on a testing environment:

//Configure GeoLocation for Visitor Groups, etc
           services.AddMaxMindGeolocationProvider(o =>
               o.DatabasePath = Path.Combine(_webHostingEnvironment.ContentRootPath, "App_Data", "GeoLite2-City.mmdb");
               o.LocationsDatabasePath = Path.Combine(_webHostingEnvironment.ContentRootPath, "App_Data", "GeoLite2-City-Locations-en.csv");