Skip to content
  1. Extras
  2. cityFields
  3. Component settings

Component settings

Main settings

NameDefaultDescription
cityfields_activeYesEnables the component
cityfields_cityindomainNoEnables city detection by full domain or subdomain
cityfields_cityinsubfolderNoEnables city detection by subdirectories
cityfields_default_city1Default city ID
cityfields_frontend_css[[+cssUrl]]web/cityfields.cssPath to CSS file for the frontend
cityfields_frontend_js[[+jsUrl]]web/cityfields.jsPath to JavaScript file for the frontend
cityfields_placeholdersYesEnables writing all data for the selected city to placeholders
cityfields_prefixcf.This prefix is prepended to placeholder names

Geolocation

NameDefaultDescription
cityfields_gl_activeYesEnables city detection by IP and automatic redirect
cityfields_gl_excludeYandexBot, 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, PaperLiBotFor these user agents, city detection by IP and automatic redirect are disabled. Enter agents on one line, comma-separated.