Video Lesson: Locate block nodes within layout XML files in Magento

Locate block nodes within layout XML files in Magento

This is premium content

Only available to enrolled or University students.
Join today to unlock all lessons in this course.

Locate block nodes within layout XML files in Magento

Locate block nodes for templates in Magento layout XML using module paths and global search.

Lesson Content

Locating the block node responsible for rendering a template in Magento is a bit easier than locating the template file itself, because we already know where the end file is located. This is a matter of translating the path to this file to the special string syntax that is passed around for when referencing templates in block nodes.

For example, this sidebar.phtml file is located in the Magento_Catalog module. We’ll notice that it is within the view/frontend/templates directory, but also within a product/compare subfolder. We can use this data to find out which block node is referen...

Premium content

Enroll to unlock the full content and all course materials.

Maggie

Hey, I'm Maggie! 👋

Ask me anything.

Want to chat with Maggie?

Enroll in this course for AI tutor access.

Comments

Join the discussion!

Comments

Want to comment on this lesson?

Enroll in this course to leave comments.