NET Developer 10 Exam QuestionsBrowse all questions from this exam

NET Developer 10 Exam - Question 38


In a non-SXA website where you are using Sitecore MVC, you are working on the presentation for a website, starting with the layout. What two things are needed to successfully implement a layout? (Choose two.)

Show Answer
Correct Answer: A,B,E

To successfully implement a layout in a non-SXA Sitecore MVC website, you need a layout.cshtml file and a layout definition item. The layout.cshtml file is necessary as it contains the HTML and Razor code, functioning as the base template for the site. The layout definition item in Sitecore is required to define and link this .cshtml file into the Sitecore content tree, enabling its use within the Sitecore application. Other options like a standard values item or main placeholder are important but are not essential specifically for the initial implementation of a layout.

Discussion

3 comments
Sign in to comment
AlexEthisysOptions: AB
Apr 3, 2023

A and B

blacky_saOptions: AB
Jan 14, 2024

E is not correct

PRAVF9CYOptions: AB
Feb 15, 2024

A and B To create layout out we first need to create Layout item & then we need to assign .cshml file which will have _layout defination.