6. layout file types
来源:互联网 发布:云计算部署模式哪三种 编辑:程序博客网 时间:2024/06/04 19:51
1.Page layout
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_layout.xsd"> <update handle="1column"/> <referenceContainer name="columns"> <container name="div.sidebar.main" htmlTag="div" htmlClass="sidebar sidebar-main" after="main"> <container name="sidebar.main" as="sidebar_main" label="Sidebar Main"/> </container> <container name="div.sidebar.additional" htmlTag="div" htmlClass="sidebar sidebar-additional" after="div.sidebar.main"> <container name="sidebar.additional" as="sidebar_additional" label="Sidebar Additional"/> </container> </referenceContainer></layout>
2.Page layouts declaration
<page_layouts xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/PageLayout/etc/layouts.xsd"> <layout id="1column"> <label translate="true">1 column</label> </layout> <layout id="2columns-left"> <label translate="true">2 columns with left bar</label> </layout> <layout id="2columns-right"> <label translate="true">2 columns with right bar</label> </layout> <layout id="3columns"> <label translate="true">3 columns</label> </layout></page_layouts>
3.Page configuration
4.Generic layout
<layout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/layout_generic.xsd"> <update handle="formkey"/> <update handle="adminhtml_googleshopping_types_block"/> <container name="root"> <block class="Magento\Backend\Block\Widget\Grid\Container" name="googleshopping.types.container" template="Magento_Backend::widget/grid/container/empty.phtml"/> </container></layout>
http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/layouts/layout-types.html
0 0
- 6. layout file types
- File Types
- FILE LAYOUT
- base-kernel-file-types
- EBS File Types
- Android Resource Types之Layout简介
- Mime Types and file associations
- File Types in Unix System
- File Transfer&Types Of File Translators
- base-kernel-file-layout
- Bibliography Entry Types for .bib file
- Registering the File Types Your App Supports
- SecureFX中File Types的配置
- types
- @" and "+" in the Android layout file
- MDS中file layout初始化过程
- Unexpected text found in layout file: """
- Unexpected text found in layout file: """
- sql收藏
- C++11多线程(十八):线程池
- 「技术大牛」是如何缩短事件平均解决时间的?
- iOS开发之CocoaPods与Github的简单使用
- 【LeetCode】237. Delete Node in a Linked List(链表)
- 6. layout file types
- eclipse安装spring tool suite插件
- 【c/c++】STL标准入门汇总
- hashcode方法浅析
- volley post请求 gzip压缩 json 传输
- 设计模式-工厂方法模式
- Spring事务配置的五种方式
- [Magento代码] 关联SKU到指定的分类下面
- linux环境变量