Magento Certified Developer GuideCategory: 6. AdminhtmlHow can elements in system configuration be rendered with a custom template
Manish Prakash Staff asked 2 years ago

We can render elements with custom template using frontend_model

<label>Enable CAPTCHA in Admin</label>
 <frontend_model>module/block_class</frontend_model>
                            <frontend_type>select</frontend_type>
                            <source_model>adminhtml/system_config_source_yesno</source_model>
                            <sort_order>1</sort_order>
                            <show_in_default>1</show_in_default>
                            <show_in_website>0</show_in_website>
                            <show_in_store>0</show_in_store>

In the frontend module we can specify the custom block which should extend “Mage_Adminhtml_Block_System_Config_Form_Field” it has a function render() which we can override to provide a custom template.