If you are building a module and you encounter a block that cannot be referenced by name then you probably need to create a plugin to overwrite the template. This can be achieved in three simple steps.
Month: April 2019
Blocks and Containers are heart of layout. Whenever we want to customise the page layout we do change in layout files or alter templates. Today we gonna list down all the attributes used in the layout xml.
It is very common requirement that we need to create a custom page for new campaigns. But the layout of that page is different from the website generic pages layout.
Virtual types are a way to inject different dependencies into existing classes without affecting other classes.
Use the arguments and argument nodes. These call setData on the block. As such, you can retrieve these values later by calling the getData() method.
Create a custom URL structure in Magento 2 using RouterList.
Change your Magento admin URL from the default “/admin”, to something more unique and very hard to remember.