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