04.07.2019 Views

frontend-developer-1

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Layout XML in Themes<br />

• catalog_product_view_type_simple<br />

• catalog_product_view_id_16<br />

• catalog_product_view_sku_24-UG07<br />

• 1column<br />

• catalog_product_prices<br />

In reviewing the above layout handle lists, you will see that there are some common<br />

entries. default is a layout handle that is available everywhere. If you add<br />

view/[area]/layout/default.xml to your module, every page in that area<br />

(<strong>frontend</strong> or adminhtml) will be affected.<br />

Notice that the page layout is also included as a layout handle.<br />

How can layout handles be used during theme customization?<br />

Layout handles are a fantastic way to group updates together. For example, you<br />

can create a new layout handle to display specific information on a product page.<br />

Unless you instruct the Magento Layout model to include that handle, no changes<br />

appear. But, say, in a plugin, you tell the Layout model to include the handle, all<br />

changes associated with that layout handle will take effect on the website.<br />

Copyright © 2018, SwiftOtter, Inc.<br />

34

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!