Files
esun3d/app/code/Esun/MegaMenu/etc/adminhtml/system.xml
T
2026-09-15 10:35:56 +08:00

44 lines
3.1 KiB
XML
Executable File

<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system>
<tab id="esun" translate="label" sortOrder="300">
<label>Esun</label>
</tab>
<section id="esun_megamenu" translate="label" type="text" sortOrder="920" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Mega Menu</label>
<tab>esun</tab>
<resource>Esun_MegaMenu::config</resource>
<group id="general" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>General Settings</label>
<field id="enabled" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Enable Mega Menu</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="title" translate="label comment" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Fallback Menu Title</label>
<comment>Used only when the configured category is not already present in the Magento top menu.</comment>
</field>
<field id="root_category_ids" translate="label comment" type="textarea" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Mega Menu Root Category IDs</label>
<comment>Enter the top-level category IDs that should use the mega menu, separated by comma, space, semicolon, or new line. Example: 12, 38, 52.</comment>
</field>
<field id="root_category_id" translate="label comment" type="text" sortOrder="35" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Legacy Single Root Category ID</label>
<comment>Backward compatible single category ID. The new multi-ID field above is preferred.</comment>
<validate>validate-number validate-greater-than-zero</validate>
</field>
<field id="products_per_series" translate="label comment" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Products Per Series</label>
<comment>Number of products displayed under each series category.</comment>
<validate>validate-number validate-greater-than-zero</validate>
</field>
<field id="series_limit" translate="label comment" type="text" sortOrder="60" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Series Category Limit</label>
<comment>Maximum number of series categories displayed for the active Filament Category.</comment>
<validate>validate-number validate-greater-than-zero</validate>
</field>
</group>
</section>
</system>
</config>