How are two methods different?

In layout files you can change al element’s order on a page. This can be done using one of the following:
<move> instruction before and after element attributes?
How are two methods different?
A. They are the same, both provide access to the same functionality
B. Elements are renamed by default when using the move instruction
C. The move instruction allows altering an element’s parent node
D. Before and after attributes can only be used with referenceContainer and referenceBlock

Download Printable PDF. VALID exam to help you PASS.

6 thoughts on “How are two methods different?

  1. Did you see the question? Ask the difference between before and after. I think the correct answer is A, because the devdocs say …. after or before Specifies the element’s position relative to siblings. Use dash (-) to position the block before or after all other siblings of its level of nesting. If the attribute is omitted, the element is placed after all siblings. And they actually perform the same function.

  2. Answer: C

    before and after attributes
    To help you to position elements in a specific order suitable for design, SEO, usability, or other requirements, Magento software provides the before and after layout attributes. These optional attributes can be used in layout XML files to control the order of elements in their common parent.

  3. Definitley C as you can’t change a parent with a before and after only an elements position within a parent

  4. I think the ans is C, the before and after only used in instruction not in referenceContainer and referenceBlock

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.