管理员配置:根据选定的多选值显示字段
我想显示基于选定的multiselect输入的字段...如果仅选择一个值,则下面的代码将起作用。如果我选择了多个值,则它仅显示一个字段(首先从源模型中选择) <enabled> <label>Enabled</label> ... <source_model>adminhtml/system_config_source_enabledisable</source_model> </enabled> <!-- this gives three options - shop, ebay, amazon --> <channels> ... <frontend_type>multiselect</frontend_type> <source_model>module/system_config_source_channels</source_model> <depends> <enabled>1</enabled> </depends> </channels> <mail_template_shop> ... <depends> <enabled>1</enabled> <channels>shop</channels> </depends> </mail_template_shop> <mail_template_ebay> ... <depends> <enabled>1</enabled> <channels>ebay</channels> </depends> </mail_template_ebay> 相关代码: app / code / core / Mage / Adminhtml / Block …