xml Std删除std change std

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了xml Std删除std change std相关的知识,希望对你有一定的参考价值。

The div you are looking for is a page/html_wrapper block being added via the cms.xml layout file.

Here is the excerpt taken from app/design/frontend/base/default/layout/cms.xml:


First option would be applicable if you use local.xml:

<cms_page>
  <reference name="content">
    <action method="unsetChild">
      <alias>cms.wrapper</alias>
    </action>
    <block type="cms/page" name="cms_page"/>
  </reference>
</cms_page>

<cms_index_index translate="label">
  <reference name="content">
      <action method="unsetChild">
          <alias>cms.wrapper</alias>
      </action>
      <block type="cms/page" name="cms_page"/>
  </reference>
</cms_index_index>

change std

<block type="page/html_wrapper" name="cms.wrapper" translate="label">
  <label>CMS Content Wrapper</label>
  <action method="setElementClass"><value>main-holder</value></action>
  <action method="setAttribute"><param1>html_tag_name</param1><param2>section</param2></action>
  <block type="cms/page" name="cms_page"/>
</block>

<cms_page>
  <reference name="cms.wrapper">
    <action method="setElementClass"><value>content</value></action>
    <action method="setAttribute"><param1>html_tag_name</param1><param2>section</param2></action>
    <block type="cms/page" name="cms_page"/>
  </reference>
</cms_page>

Second option would be applicable if you copy the base layout files over:

Copy cms.xml from app/design/frontend/base/default/layout/cms.xml to app/design/frontend/your_package/your_theme/layout/cms.xml and edit the first layout snippet from above to the following:

<cms_page translate="label">
  <label>CMS Pages (All)</label>
  <reference name="content">
    <block type="core/template" name="page_content_heading" template="cms/content_heading.phtml" />
    <block type="cms/page" name="cms_page" />
  </reference>
</cms_page>

以上是关于xml Std删除std change std的主要内容,如果未能解决你的问题,请参考以下文章

从嵌套在 std::map 中的 std::list 中删除元素的最佳方法

如何从 std::string 中删除 +

从 std::vector 中删除前 N 个元素

将 QT 资源转换为 ::std::istream&

删除 std::list 中的项目,同时保持分配状态

根据插入时间从std :: map中删除元素