NET Developer 10 Exam QuestionsBrowse all questions from this exam

NET Developer 10 Exam - Question 31


Currently, a Content Author has three rendering options with a complex datasource query. However, in order to swap the existing rendering for a new one, the author has to copy the datasource query, remove the old rendering, insert the new rendering, and paste the datasource query into the datasource field. According to Sitecore best practices, what should you do to reduce the chance of user error when an author needs to change out the rendering?

Show Answer
Correct Answer: C,D

To reduce the chance of user error when an author needs to change out the rendering, you should add each rendering definition item to the Compatible Renderings option within each of the renderings. This approach allows authors to easily swap renderings without having to manually copy and paste datasource queries, thus minimizing the potential for mistakes and ensuring the process is more seamless and user-friendly.

Discussion

3 comments
Sign in to comment
a3codeOption: D
May 21, 2023

D should be correct. https://mattneil.co.uk/2017/01/17/compatible-renderings-in-sitecore/

samuellealbOption: D
Aug 2, 2023

D is the correct answer

blacky_saOption: B
Jan 14, 2024

As for me it's the best answers, like authors only need to interact with a single rendering, the datasource query is managed within the single rendering, authors can easily change the display mode using a rendering parameter, Developers only need to maintain a single rendering, simplifying code updates and reducing potential for errors.