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 types, 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 elements or blocks;
- dates, times, and list options;
- distinct values for different websites.
Key features:
Multi-site support. Settings are bound to specific sites and sections, such as base, header, footer, or contacts.
Intuitive structure. Parameters are organized into sections and semantic groups 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 provides linked settings where a logical switch controls the visibility of dependent fields. Values are cached using both the module's own mechanisms and the 1C-Bitrix platform; the cache is automatically cleared after data changes.
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 the site identifier is not 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.