Best way to change block´s template?
-
23-02-2021 - |
Solution
Doesn't work
It works and the Best one,
higher priority than the
<argument name="template" xsi:type...
, explanation in 3.Works too :
It works but the second one is the best because when the template value is specified in the template attribute
template="..."
have a higher priority when Magento generate layouts than when the template is set in<argument name="...">
oneDoesn't work :
(
action
node is deprecated)
Magento DevDocs Says :
OTHER TIPS
It's not the prefered way
the preferred way is the answer marked in green.
you can read more about this in the official documentation.
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange