ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 10 - AD0-E720 discussion

Report
Export

An Adobe Commerce Developer is adding a new page layout to the theme directory within a custom theme. Which file needs to be created to register the new page layout?

A.
app/design/frontend/<VendorName>/<ThemeName>/layouts. xml
Answers
A.
app/design/frontend/<VendorName>/<ThemeName>/layouts. xml
B.
app/design/frontend/<VendorName>/<ThemeName>/Magento_Theme/layouts.xnil
Answers
B.
app/design/frontend/<VendorName>/<ThemeName>/Magento_Theme/layouts.xnil
C.
app/design/frontend/<VendorName>/<ThemeName>/Magento_Theme/layout/layouts.xml
Answers
C.
app/design/frontend/<VendorName>/<ThemeName>/Magento_Theme/layout/layouts.xml
Suggested answer: C

Explanation:

To register a new page layout in a custom theme, the developer needs to create a layouts.xml file in the app/design/frontend/<VendorName>/<ThemeName>/Magento_Theme/layout directory. The layouts.xml file should contain the <layout> element with the id, label, and file attributes. The id attribute is used to reference the layout in other layout files, the label attribute is used to display the layout name in the admin panel, and the file attribute is used to specify the path to the layout file relative to the web directory of the theme. The app/design/frontend/<VendorName>/<ThemeName>/layouts.xml and app/design/frontend/<VendorName>/<ThemeName>/Magento_Theme/layouts.xml files are not valid and will not work.

Reference: [Create a new page layout], [layouts.xml]

asked 02/10/2024
Marco Morsiani
45 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first