Dieses Blog durchsuchen

Mittwoch, 3. Dezember 2014

Sitecore Training/Certification Part 1: Some round robin questions and answers from Module 2.

1. What is an item?

An item is an addressable unit of content.

2. How are an item’s fields defined? In other words, what defines an item?

Data templates define items with fields and field types.

3. What are the advantages of template inheritance?

  • The advantages of template inheritance are numerous: 
  • developers create complex content types by inheriting from base data templates; 
  • standardized fields across data templates lets developers easily create presentation components; 
  • allows business users see normalized field names and field types for content they create and edit. 
  • In addition, if not overridden, template standard values are inherited, allowing developers to easily describe default values for fields as well as define default settings such as insert options and layout details.

4. What is the name of the data template that ALL data templates inherit from?

Standard Template

5. Where are default values set?

Template Standard Values known also as the __Standard Values item.

6. Give an example of when you would use a default value?

There are two type of default values: Dynamic and Static. Dynamic values are tokens, like $name,
$date, and $id. This values are defined when an item is created (when the object has been
instantiated). Static values are hard coded, such as a default value for database field. A good
example for when to use a dynamic default value (like $name) is when you want to capture the item
name into a given field such as a Menu Title field. For a checkbox field named Required, a good
default value might be 1, which means checked.
  • $name: Is replaced with the name of the created item
  • $parentname: Is replaced with the name of the parent to the created item
  • $date: Is replaced with the current date
  • $time: Is replaced with the current time
  • $now: Is replaced with current date and time
  • $id: Is replaced with the id of the created item
  • $parentid: Is replaced with the id of the parent to the created item.

7. What are Insert Options?

Insert options allow business users to create child items. There are three types of insert options: data
templates, branch templates or command templates. It is possible to override the behavior defined
insert options using Insert Rules and/or the modifying the <uiGetMasters pipeline.

8. What’s a best practice for defining insert options?

As a best practice, developers should define insert options on the __Standard Values item of the
given data template.