簡體   English   中英

我們可以為特定頁面禁用magento擴展嗎

[英]Can we disable magento extension for particular page

例如,如何禁用特定頁面的擴展名,我只想在magento中禁用主頁的擴展名

<config>
<modules>
<first_module>
<active>false</active>
<codepool>local</codepool>
</first_module>
</modules>
</config>

我還沒有那樣面對這種禁用功能。 我們通常要做的是,從負責頁面引用負責的頁面句柄下的local.xml中刪除頁面上的模塊。

例如。 如果我在首頁上沒有例如“新聞通訊”的特定模塊,

<cms_index_index> <!--/ Homepage -->
  <reference name="footer"> <!--/ Reference where the module appearing -->
    <remove name="newsletter"/> <!--/ Remove -->
  </reference>
</cms_index_index>

在Magento 1.x中這是不可能的

您只能按商店視圖或網站啟用/禁用模塊。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM