Custom layout handles in Magento
Learn custom layout handles in Magento including default and URL based handles like checkout_cart_index and wishlist_index_configure_type_bundle.
Lesson Content
So far, we’ve been looking at the Magento_Theme module which defines the core page layouts, containers, layouts & blocks. These define the bare root of page layouts, but module’s can extend all of these aspects.
Let’s go to the Magento_Wishlist module at vendor/magento/module-wishlist. This module controls what products have been added to a customer’s wishlist. Going to view/frontend/layout, we will see many layout XML files defined.
You’ll notice a specific naming convention going on. We learned default.xml applies to all pages in Magento, but these files target either specific pa...
Join the discussion!
Comments
Want to comment on this lesson?
Enroll in this course to leave comments.