hryvinskyi/magento2-configuration-fields 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hryvinskyi/magento2-configuration-fields

最新稳定版本:1.0.7

Composer 安装命令:

composer require hryvinskyi/magento2-configuration-fields

包简介

N/A

README 文档

README

A Magento 2 module that provides enhanced UI elements for the Stores > Configuration section, including a user-friendly cron expression editor field.

Features

  • Cron Expression Editor: Interactive, validated, and human-readable cron field for system configuration.
  • Catalog Category Selector: A custom field type for selecting categories in the system configuration.
  • Modern UI/UX with real-time validation and summary.

Installation

Via Composer

composer require hryvinskyi/magento2-configuration-fields
bin/magento module:enable Hryvinskyi_ConfigurationFields
bin/magento setup:upgrade

Manual Installation

  1. Copy the module to app/code/Hryvinskyi/ConfigurationFields.
  2. Run the following Magento CLI commands:
    bin/magento setup:upgrade
    bin/magento setup:di:compile
    bin/magento cache:flush

How It Works

  • The module adds a new system configuration field type that renders a cron editor UI.
  • The editor provides validation, error highlighting, and a summary of the cron schedule.
  • The value is stored as a standard cron expression string.

Example system.xml Usage

<field id="expression" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
    <label>Cron Expression</label>
    <frontend_model>Hryvinskyi\ConfigurationFields\Block\Adminhtml\System\Config\Form\Field\CronEditor</frontend_model>
</field>

<field id="category" translate="label" type="multiselect" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
   <label>Categories Multiselect</label>
   <frontend_model>Hryvinskyi\ConfigurationFields\Block\Adminhtml\System\Config\Form\Field\UiSelect</frontend_model>
</field>

<field id="category" translate="label" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
   <label>Categories Select</label>
   <frontend_model>Hryvinskyi\ConfigurationFields\Block\Adminhtml\System\Config\Form\Field\UiSelect</frontend_model>
</field>

Screenshots

Cron Editor Example

Catalog Categories Example

Support

For issues, questions or contributions, please contact the author or create an issue in the GitHub repository.

Author

License

This project is licensed under the MIT License.

统计信息

  • 总下载量: 183
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-05-19