Magento - xml layouts, specify value for ifconfig?

前端 未结 2 1947
借酒劲吻你
借酒劲吻你 2020-12-09 13:20

I\'m sure I saw before somewhere, specifying a value for xml ifconfig statements (as default is just boolean). Anyways, disabling modules in the admin doesn\'t actually work

2条回答
  •  自闭症患者
    2020-12-09 14:20

    You could create a separate enable setting using nothing but your module's system.xml.

    
        
            
                
                    
                        
                            
                                
                                select
                                adminhtml/system_config_source_enabledisable
                                1
                                1
                                1
                            
                        
                    
                
            
        
    
    

    Then use the new setting in the layout file:

    
        
    
    

提交回复
热议问题