Magento系统配置:What';s将frontend_type用于section和groups


Magento System Config: What's the use of frontend_type for section and groups?

system.xml中,我可以为部分和组定义frontend_type

Mage_Catalog的示例。

<sections>
    <catalog translate="label" module="catalog">
        <class>separator-top</class>
        <label>Catalog</label>
        <tab>catalog</tab>
        <frontend_type>text</frontend_type>
        <sort_order>40</sort_order>
        <show_in_default>1</show_in_default>
        <show_in_website>1</show_in_website>
        <show_in_store>1</show_in_store>
        <groups>
            <frontend translate="label">
                <label>Frontend</label>
                <frontend_type>text</frontend_type>
                <sort_order>100</sort_order>
                <show_in_default>1</show_in_default>
                <show_in_website>1</show_in_website>
                <show_in_store>1</show_in_store>
                <fields>

有没有任何例子表明这是而不是文本?什么是用例?

据我从Alan Storm的这篇文章中了解到,<frontend_type/>的值在Factory样式的模式中用于实例化具有格式的类

Varien_Data_Form_Element_Type

其中CCD_ 5是CCD_。这种情况发生在Varien_Data_Form_Element_Abstract类的addField方法中,该方法不在节和组上调用。