2

I've been studing for the Magento certification and I came across a question in the swiftotter practice exam that said:

enter image description here

Can someone explain me why the answer I chose is incorrect? I thought the way you changed a block´s layout was with the answer I selected.

Thanks!

1
  1. Doesn't work

  2. It works and the Best one,

    higher priority than the <argument name="template" xsi:type..., explanation in 3.

  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="..."> one

  4. Doesn't work :

    (action node is deprecated)


Magento DevDocs Says :

enter image description here

0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.