This topic explains how default templates work in the Magento application.
I. Templates.
1. What components can templates be found in?
● Modules
● Themes
2. What is the file structure of template files?
● Modules
view/<area>/templates/some/path/file.phtml
● Themes
<Vendor_Module>/templates/some/path/file.phtml
II. Block classes.
1. What is the default block class for use with templates?
MagentoFrameworkViewElementTemplate
2. What block...
I. Layout directives.
1. What are the main layout directives?
● <container/>
● <block/>
● <referenceContainer/>
● <referenceBlock/>
● <move/>
2. What are they for?
II. <Container/>
1. What attributes can containers have?
● name
● htmlTag
● htmlClass
● before/after
● and more...
<some_handle>.xml
III. <block/>.
1. What attributes can blocks have?
● name
● class
● template
● before/after
● cacheable (disables FPC for...
1. What are the main layout file nodes?
● <update/>
● <head/>
● <body/>
2. What do they contain?
<some_handle>.xml
This article describes the basic concepts you need to know about layout file, and handles in magento2
I. Layout files.
For a particular page, its layout is defined by two major layout components: page layout file and page configuration file.
A page layout file defines the page wireframe,...
In Magento, the basic components of page design are layouts, containers, and blocks. A layout represents the structure of a web page (1). Containers represent the placeholders within that web page structure (2). And blocks represent the UI controls or components within the container placeholders...
What’s in this topic
This article describes the basic concepts you need to know about block, layout xml and template in magento 2.
1. What is layout XML?
● Defines the content on a given page
○ via 2 element types: containers and...
I. Key theme files in magento2
What files are required and why?
What’s in this topic ?
This topic describes the file structure of a Magento theme and theme location in magento 2.
I. Theme location
Storefront themes are conventionally located under app/design/frontend/<Vendor>/. Though technically they can reside in other directories. For example Magento built-in themes can...
I. Components
What are the different component types?
● Modules
● Themes
● Language packages
What are their purposes?
II. Areas
What are the different areas in Magento 2?
● frontend
● adminhtml
● base
● crontab
● webapi_rest
● webapi soap
What are their purposes?
Which are relevant to themes?
● frontend
● adminhtml
● base
III. Scopes
What are...