Sitecore 10 .NET Developer Certification Exam Flashcards
(278 cards)
How do you patch in changes to the sitecore section of Web.config?
Put a .config patch file in the /App_Config/Include folder.
How are component parameters stored in the Sitecore database?
As clear text in URL query string format.
How can you retrieve the datasource in a view rendering with the default model?
Model.Item
With a particular rendering an editor can only select items of one particular content type. How can this be achieved?
By setting the template ID into the Data Source template field.
An author adds a component to a page in the Experience Editor and then selects the Associated Content dialog box. What triggers this behaviour?
The component’s Datasource Location field is filled in.
What property will automatically prompt a user to choose a datasource when adding a component in the Experience Editor?
Datasource Location
How can you force a Sitecore control to output the content of an item’s datasource?
Set the datasource or item property.
How can you restrict authors to specific types of item for a component’s datasource?
Add the data template to the component’s Datasource Template field.
Why would you set the component on the Standard Values and override the datasource on the items?
When your component has to appear on every page but has a different datasource for a particular page.
What should you use if you want a Title field to be filled with the name of the item on item creation?
Use the $name token on the Standard Values of that template.
When you add @Html.Sitecore().Placeholder(“main”) to your rendering, what do you need to do to make the placeholder selectable in the Experience Editor?
Create a Placeholder Settings definition item.
Why must you create a corresponding Placeholder Settings item in the Sitecore environment after declaring a placeholder in the code of a layout/component?
A Placeholder Settings item is necessary for the placeholder to be accessible and used in the Experience Editor.
Can you use placeholders inside of placeholders?
Not directly, but you can have components inside a placeholder that define other placeholders. They are referred to as nested placeholders.
Dynamic placeholders have a unique ID assigned when they appear on a page created from the original placeholder key. Which is the appropriate format for the unique ID?
Key-#-{GUID}
What happens if allowed controls are not specified on a Placeholder Settings item?
In the Experience Editor, the user will be able to add any component to the placeholder.
What is the purpose of the Standard Values of a template?
To provide a default value when the item is created or to have a fallback when a field has NULL value.
Which of the following options is essential for defining default values and for setting default configurations (Insert Options, Presentation Details etc.) on a template?
Standard Values
Why would you need to use the data source in a component?
Data source allows you to build more flexible and reusable components, because the data source is determined by users and not hardcoded by developers.
How would you show a toolbar in a random part of the page?
Using an Edit Frame.
What template must be used as a base template for your Paramaters template?
The Standard Rendering Parameters template.
You have created a new Parameters template. How do you ensure your component uses it?
Through the component’s definition item in the Parameters template field.
What is the default model used by view renderings and optionally by controller renderings?
RenderingModel
Which of the following view types can be used to render HTML output within another view’s rendered output?
Partial views
What two other terms have the same meaning as component?
- Rendering
- Control