Layouts and pages
So far, I’ve only described the main terms and role of the layout XML files in preparing the structure of all pages. AC has many working URLs (from many modules) in the system. Here are some examples:
- Registration page
- Catalog pages (products and categories)
- Customer order history page
- CMS pages
- Cart page
Each page that’s rendered by the framework is related to a specified module and action that’s performed by the specific controller in that module. The preceding list can be matched to the following modules:
Magento_Customer
:- Registration page
- Customer order history page
Magento_Catalog
:- Product view page
- Category view page
Magento_Cms
:- CMS pages
Magento_Checkout
:- Cart page
All these pages have unique layouts, but they also share common elements, which mainly come from the default.xml
file. So, how is this layout constructed, and how is the HTML structure being determined? This takes place during...