Magento cms页面显示块标记而不是移动站点中的html

时间:2014-10-31 09:46:02

标签: magento

我正在为移动版本实现magento移动主题,但我的索引cms页面显示块标记而不是执行它的内容。虽然HTML内容工作正常。下面是我的cms.xml代码。

<layout version="0.1.0">
   <!--
   Default layout, loads most of the pages
   -->
   <default>
      <reference name="footer">
  </reference>
   </default>

 <cms_index_index>
  <reference name="head">
     <action method="addJs">
        <script>aw_mobile/navigation.js</script>
     </action>
     <action method="addJs" ifconfig="awmobile/settings/scrolldisabled">
        <script>aw_mobile/scroll.js</script>
     </action>
     <action method="addCss">
        <stylesheet>css/navigation.css</stylesheet>
     </action>
  </reference>
  <block type="awmobile/catalog_navigation" name="cms_page" template="catalog/navigation/top.phtml" >
     <block type="core/messages" name="nav_messages" as="nav_messages"/>
  </block>
  <default>
     <reference name="content">
        <block type="cms/block" name="home_page" as="home_page" output="toHtml">
           <action method="setBlockId">
              <block_id>home_page</block_id>
           </action>
        </block>
     </reference>
  </default>
   </cms_index_index>

   <cms_page>
  <reference name="content">
     <action method="setIsCms">
        <value>1</value>
     </action>
     <block type="core/template" name="page_content_heading" template="cms/content_heading.phtml"/>
     <block type="cms/page" name="cms_page"/>
  </reference>
  <remove name="breadcrumbs" />
   </cms_page>

   <cms_index_defaultindex>
  <reference name="head">
     <action method="addJs">
        <script>aw_mobile/navigation.js</script>
     </action>
     <action method="addJs" ifconfig="awmobile/settings/scrolldisabled">
        <script>aw_mobile/scroll.js</script>
     </action>
     <action method="addCss">
        <stylesheet>css/navigation.css</stylesheet>
     </action>
  </reference>        
  <remove name="right"/>
  <remove name="left"/>
  <reference name="root">
     <action method="setTemplate">
        <template>page/1column.phtml</template>
     </action>
  </reference>
  <reference name="content">
     <block type="awmobile/catalog_navigation" name="cms_page" template="catalog/navigation/top.phtml" >
        <block type="core/messages" name="nav_messages" as="nav_messages"/>
     </block>
  </reference>
   </cms_index_defaultindex>

   <cms_index_defaultnoroute>
  <remove name="right"/>
  <remove name="left"/>

  <reference name="root">
     <action method="setTemplate">
        <template>page/1column.phtml</template>
     </action>
  </reference>
  <reference name="content">
     <block type="core/template" name="default_no_route" template="cms/default/no-route.phtml"/>
  </reference>
  </cms_index_defaultnoroute>
</layout>

在移动网站的索引页面中显示以下输出

{{block type="core/template" template="newsletter/subscribe_popup.phtml"}}

0 个答案:

没有答案