当我在 magento 中禁用扩展时,前端 link 没有删除
Front end link not removing when i disble an Extension in magento
我创建了一个自定义扩展,并在前端菜单中提供 url link,当我从 Magento 管理端禁用此扩展时,link 没有从前端删除, link 仍在显示。我需要提供什么才能删除此 link?
<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>
您无法真正从管理面板禁用扩展程序。 "Disable Modules Output" 配置有点误导,它所做的只是跳过渲染相应模块的块和管理菜单。
仍然应用布局更新,这意味着不使用其自身块的布局中的每个更改都不受 "disable module output" 的影响。
如果扩展没有自己的 "disable" 配置,您需要使用 app/etc/modules
中的模块激活文件完全停用它。替换
<active>true</active>
和
<active>false</active>
我创建了一个自定义扩展,并在前端菜单中提供 url link,当我从 Magento 管理端禁用此扩展时,link 没有从前端删除, link 仍在显示。我需要提供什么才能删除此 link?
<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>
您无法真正从管理面板禁用扩展程序。 "Disable Modules Output" 配置有点误导,它所做的只是跳过渲染相应模块的块和管理菜单。
仍然应用布局更新,这意味着不使用其自身块的布局中的每个更改都不受 "disable module output" 的影响。
如果扩展没有自己的 "disable" 配置,您需要使用 app/etc/modules
中的模块激活文件完全停用它。替换
<active>true</active>
和
<active>false</active>