ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 9 - AD0-E720 discussion

Report
Export

An Adobe Commerce developer has been asked to move a block called country from the container sidebar to the container content, the block has to be the last child on the content container.

Which layout instruction would be used to move the block?

A.
<move element = 'country' destination='content' after='-'/>
Answers
A.
<move element = 'country' destination='content' after='-'/>
B.
<move element='country-element' destination='content-element'/>
Answers
B.
<move element='country-element' destination='content-element'/>
C.
<move element='country' destination='content' after=''last-child'/>
Answers
C.
<move element='country' destination='content' after=''last-child'/>
Suggested answer: A

Explanation:

To move a block from one container to another, the developer needs to use the <move> layout instruction with the element attribute specifying the name of the block and the destination attribute specifying the name of the container. The after attribute can be used to position the block relative to other blocks in the same container. The value ''-'' means that the block will be placed after all other blocks, i.e., as the last child. The value ''last-child'' is not valid for the after attribute and will not work. The element and destination attributes should use the names of the blocks and containers, not their aliases or classes.

Reference: [Layout instructions], [Move an element]

asked 02/10/2024
Nabil MHB
44 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first