What this solution does
A centralized hub for managing website settings on the 1C-Bitrix platform.
The module moves frequently changing parameters from PHP templates into the administrative panel. After initial setup, phone numbers, links, signatures, toggles, dates, and other values can be edited without modifying template code.
Version 2.0 introduces strict data typing, JSON storage, and a new typed PHP API. Detailed release notes are available in the "What's New" section.
Configurable items:
- Website contacts and details;
- Headers, button labels, links, and service texts;
- Enabling and disabling specific elements or blocks;
- Dates, times, and list variants;
- Distinct values for different websites.
Key features:
Multi-site support. Settings are bound to a specific site and section, such as base, header, footer, or contacts.
Organized structure. Parameters are grouped into sections and logical blocks with names, tooltips, sorting, and activity controls.
Typed values. Supported types include string, boolean, enum, date, and time.
Versatile editors. Input options include single-line and multi-line fields, checkboxes, dropdown lists, calendars, and time pickers.
The module manages related settings where a logical switch controls the visibility of dependent fields. Values are cached using both the module's mechanisms and the 1C-Bitrix platform; the cache is automatically cleared immediately after changes are made.
For developers, the main interface for version 2.0 is the Kokhanenko\Settings\Settings class. An example of retrieving a value is Settings::get('base', 'siteName', 's1'). Methods Settings::all(), Settings::has(), Settings::selectedOptions() and shorthand calls like Settings::base() are also available. If no site identifier is provided, the default site is used. The module is designed for storing small site parameters and does not replace information blocks, high-load blocks, catalogs, or page builders.
When needed, General iT can implement “Kokhanenko: Site Settings”, configure the module and verify it against the current website setup.