Exam NET Developer 10 All QuestionsBrowse all questions from this 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.)

    Correct Answer: A, B

    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
AlexEthisysOptions: AB

A and B

PRAVF9CYOptions: AB

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.

blacky_saOptions: AB

E is not correct