2015-09-28 99 views
1

我已經創建了一個自定義擴展,並在前端菜單中給出url鏈接,當我禁用從Magento管理端的這種擴展鏈接不會從前端刪除,鏈接仍在顯示。我需要給予刪除此鏈接?前端鏈接沒有刪除時,我disble擴展在magento

<default> 
    <reference name="top.links"> 
     <action method="addLink" translate="label title" module="retailer" 
       > 
     <label>Virtual Retailer Signup</label> 
     <url>Retailer</url> 
     <title>Retailer</title> 
     <prepare>true</prepare> 
     <urlParams/> 
     <position>0</position> 
     </action> 
    </reference> 
    </default> 

回答

1

您無法真正禁用管理面板中的擴展功能。 「禁用模塊輸出」配置有點讓人誤解,它所做的只是跳過渲染相應模塊的塊和管理菜單。

佈局更新仍然適用,這意味着佈局中每個不使用自己的塊的更改都不受「禁用模塊輸出」的影響。

如果擴展沒有帶有其自己的「禁用」配置,則需要使用app/etc/modules中的模塊激活文件完全禁用它。更換

<active>true</active> 

<active>false</active> 
+0

嗨,我創造了這個擴展,但我不知道,當分機從後端禁用如何禁用前端環節。 – Naveenbos

+0

一個常見的模式是'並且有一個系統配置字段「group/module/enabled」,它你也可以在其他地方辦理登機手續。 –