In addition to containing familiar folders like layout, and templates, a Magento 2 module's view folder also contains a page_layout sub-folder.


What is this folder for? How would I, as a Magento module developer, use this folder? Or is this something reserved for core Magento modules that has no functionality exposed for third party developers?


Magento 2 split page layouts on 2 components:

  1. page layouts - define page structure (support only containers)
  2. general layouts - add blocks to container

See official documentation for more details

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.