2012-05-25 27 views
0

我是一名使用Magento 1.7的新Magento開發人員。我已閱讀設計人員指南,因此試圖從右側邊欄中刪除產品比較內容塊。我在/blank_template/layout/catalog.xml(其中'blank_template'是我在管理中啓用的新空白模板的名稱)中評論了此塊。請參閱下面的代碼片段。Magento:從佈局中刪除內容塊,但在着陸頁上仍可見

<!-- 
Default layout, loads most of the pages 
--> 

    <default> 

     <!-- Mage_Catalog --> 
     <reference name="top.menu"> 
      <block type="catalog/navigation" name="catalog.topnav" template="catalog/navigation/top.phtml"/> 
     </reference> 
     <reference name="left"> 
      <block type="core/template" name="left.permanent.callout" template="callouts/left_col.phtml"> 
       <action method="setImgSrc"><src>images/media/col_left_callout.jpg</src></action> 
       <action method="setImgAlt" translate="alt" module="catalog"><alt>Our customer service is available 24/7. Call us at (800) DEMO-NUMBER.</alt></action> 
       <action method="setLinkUrl"><url>checkout/cart</url></action> 
      </block> 
     </reference> 
     <reference name="right"> 
     <!-- 
      <block type="core/template" before="cart_sidebar" name="catalog.compare.sidebar" template="catalog/product/compare/sidebar.phtml"/> 
      <block type="core/template" name="right.permanent.callout" template="callouts/right_col.phtml"/> 
     --> 
      <remove name="catalog.compare.sidebar"/> 
     </reference> 
     <reference name="footer_links"> 
      <action method="addLink" translate="label title" module="catalog" ifconfig="catalog/seo/site_map"><label>Site Map</label><url helper="catalog/map/getCategoryUrl" /><title>Site Map</title></action> 
     </reference> 

    </default> 

我不明白爲什麼產品比較塊在我的着陸頁上仍然可見?您可以在這裏查看着陸頁:http://rewards.duxter.net。我禁用了所有Magento緩存。根據模板路徑提示,這是要修改的正確文件。任何人都可以請解釋爲什麼我的代碼不工作?非常感謝!

+0

你在同一個目錄下有一個local.xml佈局文件嗎?檢查確保它沒有被覆蓋。 – sulman

+0

@sulman我檢查了,沒有在/ blank_template/layout中找到任何local.xml佈局文件。 –

回答

0

即使緩存已被禁用,進入var/cache並刪除任何現有的目錄。我們經常在我們的開發和測試網站上遇到類似的奇怪的Magento緩存行爲(兩者都禁用了緩存)。