Sitecore 10 .NET Developer Certification — Question 23
Your published layout.cshtml file contains a static placeholder with a “main” placeholder key and you want to add renderings to the presentation details of a templates standard values; however you cannot see the "main" placeholder key you added to the layout. Of the available options, which is the best explanation of what happened?
Answer options
- A. There is a missing configuration element in web.config for placeholders.
- B. The wrong layout is associated with the current template.
- C. A Sitecore publish is required to show placeholder keys when editing presentation details.
- D. There is no placeholder settings item for the associated "main" placeholder key.
Correct answer: C
Explanation
The correct answer is C because a Sitecore publish is required to ensure that any updates to placeholders are reflected in the presentation details. Options A and D do not address the visibility of the placeholder key issue, while B suggests an incorrect layout association, which is not relevant if the layout is correct but simply not published.