Layout terminology in Magento

Within a Magento layout, you can assign content blocks to structural blocks. If you recall, a structural block effectively positions the content within the page, while a content block provides the actual content within the page, whether it is a category list, callout, or the basket.

Within the layout XML files of your Magento store, there are three important elements:

  1. Handles: They provide means of identifying a particular view within your store.
  2. Blocks: They determine the visual structure and the behavior of each of the elements in your store's pages. Within a block element in the layout XML, there are a number of attributes that we can use.
  3. References: They allow the layout files to reference one another, which means that one block can contain another block in Magento.

In Magento, each module defines the layout for itself. For example, the checkout.xml file defines the layout for the checkout module, whereas the customer.xml file defines the layout of Magento's customer account module.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset