
Component settings
Main settings
| Name | Default | Description |
|---|---|---|
| cityfields_active | Yes | Enables the component |
| cityfields_cityindomain | No | Enables city detection by full domain or subdomain |
| cityfields_cityinsubfolder | No | Enables city detection by subdirectories |
| cityfields_default_city | 1 | Default city ID |
| cityfields_frontend_css | [[+cssUrl]]web/cityfields.css | Path to CSS file for the frontend |
| cityfields_frontend_js | [[+jsUrl]]web/cityfields.js | Path to JavaScript file for the frontend |
| cityfields_placeholders | Yes | Enables writing all data for the selected city to placeholders |
| cityfields_prefix | cf. | This prefix is prepended to placeholder names |
Geolocation
| Name | Default | Description |
|---|---|---|
| cityfields_gl_active | Yes | Enables city detection by IP and automatic redirect |
| cityfields_gl_exclude | YandexBot, YandexAccessibilityBot, YandexMobileBot, YandexDirectDyn, YandexScreenshotBot, YandexImages, YandexVideo, YandexVideoParser, YandexMedia, YandexBlogs, YandexFavicons, YandexWebmaster, YandexPagechecker, YandexImageResizer, YandexAdNet, YandexDirect, YaDirectFetcher, YandexCalendar, YandexSitelinks, YandexMetrika, YandexNews, YandexNewslinks, YandexCatalog, YandexAntivirus, YandexMarket, YandexVertis, YandexForDomain, YandexSpravBot, YandexSearchShop, YandexMedianaBot, YandexOntoDB, YandexOntoDBAPI, YandexTurbo, Googlebot, Googlebot-Image, Mediapartners-Google, AdsBot-Google, Mail.RU_Bot, Rambler, bingbot, Accoona, ia_archiver, Ask Jeeves, OmniExplorer_Bot, W3C_Validator, WebAlta, YahooFeedSeeker, Yahoo!, Ezooms, Tourlentabot, MJ12bot, AhrefsBot, SearchBot, SiteStatus, Nigma.ru, Baiduspider, Statsbot, SISTRIX, AcoonBot, findlinks, proximic, OpenindexSpider, statdom.ru, Exabot, Spider, SeznamBot, oBot, C-T bot, Updownerbot, Snoopy, heritrix, Yeti, DomainVader, DCPbot, PaperLiBot | For these user agents, city detection by IP and automatic redirect are disabled. Enter agents on one line, comma-separated. |
