Questions Flashcards

1
Q

Name two key components that make up Sitecore XP

A

Experience CMS, and marketing platform

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Name some of the sites that you can refer to for more information and module downloads

A
  • SDN
  • Knowledge Base
  • Marketplace
  • Sitecore XP 8
  • Sitecore XP 8 Documents
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What should you do before contacting support?

A

Refer to Help Desk best practices

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are your responsibilities as a developer?

A

Build according to recommended practices

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Name three Sitecore interfaces

A

Desktop, Content Editor, Experience Editor

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Everything in Sitecore is an…

A

Item

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

An item is not a…

A

File

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

An item’s URL is determined by…

A

Its position in the Content tree

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Name the process by which items are synchronized between the master and web database

A

Publishing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which Experience Editor mode would you use to add a new component

A

Designing mode

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which Experience Editor mode would you use to add an image or edit text?

A

Editing mode

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

When a request comes in, Sitecore…

A

Maps URL to an item in the content tree and dynamically assembles presentation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Name the three databases that are installed by default

A

master, web, and core

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Name some foundation features that Sitecore provides out of the box

A

Content versioning, multi-language support, devices (adaptive design) support

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the name of the digital marketing management part of the Experience Platform that collects and aggregates contact information?

A

xDB (or Experience Database)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

An item’s type is determined by the ______ used to create it.

A

Data template

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What is an item composed of?

A

Field sections and fields

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What do you need to specify when creating a new field?

A

Field name and type

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

In the Content Editor, where can you find out which data template an item is based on?

A

Quick Infosection on that item

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Some examples of field types are…

A
  • Single-Line Text
  • Rich Text
  • Image
  • Date
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

In which scenario would you use data template inheritance?

A

When fields are repeated in multiple data templates

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Why is it important to think of your data template creation and inheritance structure from the beginning?

A

Refactoring template inheritance may cause data loss

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

By default, all data templates eventually inherit from which Sitecore data template?

A

Standard Template

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

What happens if the same field section name is used in multiple templates in a data template’s inheritance tree?

A
  • The field sections will merge

- Fields will be listed under this single section

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

What happens if the same field name is used in two separate inherited data templates?

A
  • Fields do not merge
  • Both fields will appear
  • Best to avoid reusing the same field names
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

Describe the standard values item

A
  • Always named__StandardValues
  • Child item of owning data templates
  • Is a special instance of an item
  • contains all inherited fields
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

What type of settings can be applied to standard values?

A
  • Default field values
  • default insert Options
  • default presentation
  • default Workflow
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

What are the two types of default field values?

A

Dynamic (uses tokens) and Static.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

How do tokens work?

A

Tokens are replaced when an item is created. For example, there are tokens for the name of the item or the ID of the parent item.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
30
Q

Name three tokens:

A

Any three of the following:, $name, $date, $id, $parentid, $parentname, $time, $now, $date

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
31
Q

What are the Insert Options?

A

A list of item types (data templates) that can be created under a specific item.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
32
Q

Where Insert Options should be configured?

A

On the data template’s standard values which can be overridden at item level.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
33
Q

Why is it a good idea to configure Insert Options on standard values?

A

All items using that data template will have the same Insert Options.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
34
Q

What arepresentation details?

A

Configuration that determines what an item looks like when requested by the browser.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
35
Q

Describe how Sitecore resolves a page in comparison to a static HTML site.

A

Normally, a URL points to an HTML file. In Sitecore, a request maps to an item and the page is dynamically assembled from smaller pieces.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
36
Q

What is the name of the main Sitecore .dll?

A

Sitecore.Kernel.dll

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
37
Q

What happens if you do not setCopy LocaltoFalsefor you Sitecore.Kernel reference?

A

Some dll’s in bin folder will be deleted and you will need to get the full set from another installation to continue working.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
38
Q

In a Sitecore context, what is the name given to an .aspx file?

A

A Layout

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
39
Q

How is a Layout definition item connected to a Layout file?

A

The Path field on the Layout definition item points to the location of the .aspx file.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
40
Q

How do you configure an item’s presentation details in Sitecore Rocks?

A

Right-click->Tasks->Design Layout or CTRL+U. You can also use Command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
41
Q

How many Layouts can you assign to a single item?

A

One - Per Device

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
42
Q

Name three different types of Sitecore components

A

Sub layout, XSLT rendering, web control

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
43
Q

What type of file is a Sitecore Sub layout?

A

.ascx

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
44
Q

A component consists of a file on the file system and…

A

A definition item in Sitecore

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
45
Q

How does a component definition item where to find the associated file?

A

By aPathfield on the definition item

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
46
Q

What are the benefits of dynamic binding?

A
  • New page types can be assembled from existing components
  • Changes to page structuredo not requirea developer
  • Supportscontent re-use(more in Module 5)
  • Supports Site core’spersonalizationandtestingfeatures
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
47
Q

What is the Sitecore control that allows you to dynamically bind components to a page?

A

sc:Placeholder

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
48
Q

What is the Sitecore control to statically include Sub layouts on a page?

A

sc:Sublayout

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
49
Q

Describe the process by which a component is bound to a placeholder?

A

Open presentation details -> Add Rendering -> select rendering -> Edit Placeholder Key property

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
50
Q

Name the property that you must set on a placeholder to identify it.

A

Key

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
51
Q

If all items of a particular type require a particular component, where should these presentation details be configured?

A

On the standard values of the data template

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
52
Q

What type of components might be good candidates for static binding?

A

Page scaffolding, like headers and footers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
53
Q

How can Sitecore help you resize images dynamically?

A

Set MaxWidth and/or MaxHeight onthe sc:Image tag

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
54
Q

Name the one mandatory property that must be specified on the Sitecore web controls

A

Field (note: on , the equivalent isFieldName)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
55
Q

Sitecore Namespaces

A
  • Sitecore.Data– CRUD operations, item manipulation
  • Sitecore.Context– Information about current request
  • Sitecore.Links– Links management
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
56
Q

Useful in-built utilities

A
  • Sitecore.DateUtil
  • Sitecore.IO.FileUtil
  • Sitecore.StringUtil
  • Sitecore.UIUtil
  • Sitecore.MainUtil”
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
57
Q

In which .dll can you find the majority of the API?

A

Sitecore.Kernel

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
58
Q

When Sitecore makes a request, what is the name of the static class that is assembled?

A

Sitecore.Context

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
59
Q

Name four properties that you might get from Sitecore.Context:

A

Context user, language, database and item.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
60
Q

When you are looking at a page in Experience Editor mode, what is the context database?

A

Master

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
61
Q

Name the method used to retrieve items?

A

GetItem()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
62
Q

Items can be retrieved by path or…

A

By ID

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
63
Q

What does the Sitecore.Context.Item.Database property return in the context of a live website visitor?

A

Web

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
64
Q

How should you compare two items in code?

A

Using their IDs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
65
Q

What method do you use to retrieve an item’s URL?

A

LinkManager.GetItemUrl()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
66
Q

Why should you not useGetDynamicUrl() for your site’s front end?

A

Unreadable ‘developer’ URL, uses IDs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
67
Q

What object can you pass into the GetItemUrl() method to customize the way your item’s URL is rendered?

A

A UrlOptions object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
68
Q

Where can you customize how URLs are rendered globally?

A

In theLinkManagersection of the web.config

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
69
Q

Sitecore security is an extension of…

A

Standard .NET membership

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
70
Q

All code is executed in the context of…

A

The current user

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
71
Q

What affects whether or not a piece of code will run?

A

That user’s permissions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
72
Q

What permissions does extranet\anonymous lack by default?

A

Permission to create or edit items

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
73
Q

When creating or editing an item, the code must be executed with the appropriate security rights. Name two ways that this can be done.

A

UserSwitcher or SecurityDisabler

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
74
Q

How do you put an item into an editing state?

A

Creating an EditContext

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
75
Q

Why should you create / edit items in the master rather than the web database?

A

Web overwritten by publish.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
76
Q

Why is it a bad idea to output a field’s value straight to the screen?

A

Not editable in Experience Editor and complex fields contain custom XML

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
77
Q

Which field types are suitable for editing using the .Value property?

A

Simple text fields. For example, Single-Line Text

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
78
Q

Why should you use FieldRenderer.Render()?

A
  • Transforms field content into valid HTML – Sitecore controls ultimately go through this method
  • Automatically makes fields editable in Experience Editor
  • Allows you to pass in parameters that match the ones available in Sitecore controls –for example: image max width
  • Translates dynamic links in Rich Text Editor fields into SEO-friendly URLs”
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
79
Q

Why is it a bad idea to output raw values to the screen?

A
  • Not editable in Experience Editor

- complex field types will not make sense – images, for example

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
80
Q

Name the best suited field object for the following field types: single-line text, tree list, drop link, general link:

A

Field, MultilistField, ReferenceField, LinkField

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
81
Q

What method should you use to render the contents of text, date, Image and link fields to the screen (and why)?

A

FieldRenderer.Render() – Experience Editor support, transforms custom XML, transforms Rich Text links

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
82
Q

Why are you unable to render a multilist field to the page using .Render ()?

A

It contains IDs, not readable content

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
83
Q

Setting a component Datasource allows that component to _____.

A

Output content from a content item elsewhere in the tree

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
84
Q

How can you force a Sitecore control to output the content of an item’s Datasource?

A

Set DataSource or Item property

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
85
Q

What do parameters allow you to do?

A

Allow properties to be set per instance of a component

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
86
Q

How are parameters encoded when sent to your component?

A

As a URL query string, that is:key1=value1&key2=value2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
87
Q

What utility converts parameter lists to a NameValueCollection?

A

WebUtil.ParseUrlParameters()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
88
Q

Why would you set the Data source for a component on the presentation details of an item?

A

When that Datasource should only be used on a particular page

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
89
Q

Why would you set the component and the Datasource on the standard values’ presentation details?

A

When you want all items based on a particular template to have that component with that particular Datasource as default

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
90
Q

Why would you set the component on the standard values and override the Datasource on the item?

A

When your component has to appear on every page but has a different Datasource for a particular page

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
91
Q

When does a layout delta get created?

A

When presentation coming from the standard values of an item’s templates overridden on that item.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
92
Q

How does the XML of a layout delta differ from the XML specified on a template’s standard values?

A

Layout deltas only contain differences between an item’s standard value presentation and any changes made by the author on the item.
-> The standard value XML contains all presentation details.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
93
Q

What can you do with methods that could be used across multiple Sitecore projects?

A

Abstract code to a generic utilities project

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
94
Q

Why can’t you preview items under Global?

A

They do not have presentation details

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
95
Q

Why is the Settings item outside any individual site folder structure?

A

Values shared across all sites

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
96
Q

What kind of content can you display using a General Widget?

A

Promotions, announcements – anything that could be re-used across the site

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
97
Q

Name 2 devices you may want to target with different presentation details:

A

Tablets and mobiles

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
98
Q

When will Sitecore use the language attribute of the site definition in the web.config?

A

If there is no explicit language in the URL nor a language cookie.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
99
Q

How do visitors to your site change the site’s language?

A

You have to build language switching for the front-end yourself – using a query string, for example

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
100
Q

What kind of error checking should you do when rendering items to the screen?

A

Check that each item has a version in the context language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
101
Q

What are some important considerations with a multi-site implementation?

A

Large codebase, sites affect each other’s performance - see Multi-site slide for more

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
102
Q

Which shared field is used to store presentation information for all versions of an item?

A

__Renderings field

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
103
Q

What does the presence of the __Final Renderings field allows an author to do?

A

To define individual presentation details for each version of an item

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
104
Q

Which item versions can have individual presentations defined on them

A

Numbered and language versions of an item

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
105
Q

How do you access the Layout Details window for each item?

A

In Content Editor or Experience Editor click the Details command. In Sitecore Rocks choose Tasks ->Design Layout

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
106
Q

What is the difference between the Shared Layout tabs versus the Final Layout tab of the Layout Details window?

A

The Shared Layout tab is for defining presentation details for all versions of an item while the Final Layout tab focuses on the presentation detail of that specific version of the item.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
107
Q

What will .return?

A

The context item.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
108
Q

Name two axes available in Sitecore query:

A

ancestor-or-self::, parent::

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
109
Q

Why shouldn’t you query the entire content tree?

A

Expensive – particularly if you are iterating through all descendants

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
110
Q

Unless you are doing a very simple query on a very limited area of your Sitecore tree, what should you use instead?

A

Sitecore search

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
111
Q

How does Sitecore support each of the CMS pillars:Data definition, Content, and Presentation?

A

Data definition: data templates. Content: items.Presentation: layouts and components

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
112
Q

Describe some xWeb Content Management System features that separate Sitecore from other systems

A

AIDA: Analytics, Insights, Decisions, Automation.(Also accept: goal tracking, testing, reporting, personalization)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
113
Q

What is Site core’s easy-to-use authoring tool and what functionality does it provide?

A

The Experience Editor provides editing and designing functionality. (Also accept: marketing)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
114
Q

Which interface would an author use to see and edit items in a tree structure?

A

Content Editor

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
115
Q

What should you define in a template?

A

Fields, Field sections, Icon and parent templates

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
116
Q

What field type would you use to store formatted HTML?

A

Rich Text Field

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
117
Q

What happens if you use the same field name in a template that is already used in a parent template?

A

You will get two fields with the same name, whichleads to confusion both to users and developers. It should be avoided.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
118
Q

What is the name of the template all templates should inherit from?

A

Standard Template

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
119
Q

Why should you avoid defining the same field multiple times in more than one template?

A

It makes it much harder to manage later on.

120
Q

What would you use the Field source for in the following field types: Image, Rich Text Field, Drop link?

A
  • Image: Set the folder in the Media Library it will open when selecting an image for the field.
  • Rich Text: Configuration of the toolbar and functionality of the Rich Text Editor.
  • Drop link: Set the items to be displayed as options.
121
Q

Why do you create Standard values? As options.

A

To be able to define default and initial values

122
Q

What happens if you don’t set any insert options?

A

Only admins and privileged users will be able to create content (using the Insert from template option).

123
Q

Where should you set insert options as a best practice?

A

In the Standard Values, so they are applied as a default to newly created items.

124
Q

What happens when you set a field as shared? And unversioned?

A

A shared field contains a single version of the data for all versions in all languages. An unversioned field contains one version of the data per language.

125
Q

When do tokens get replaced?

A

Only when items are created.

126
Q

Why would you need to run a full republish?

A

Theoretically, you should not need to do this as a user.

127
Q

If you set up some publishing restrictions, will Sitecore automatically publish that content at that exact time?

A

No. The publishing restrictions only dictates when an item or its versions are publishable or not.

128
Q

What is the difference between the Master and Web database?

A

In terms of schema, there is no difference. The difference is more conceptual, in that, content for the live website is read from the Web database and content that is work-in-progress should be edited in the Master database.

129
Q

Should a user work directly in the Web database if they need something to go live immediately?

A

A user should never work directly in the Web database. In fact, they should not even be able to access the Web database in the authoring tools.

130
Q

Why would I want to use the data source in a component?

A

The data source allows you to build more flexible and re-usable components because the data source is determined by users and not hardcoded by developers.

131
Q

Can we have placeholders inside of placeholders?

A

Not directly. However, you can have components inside a placeholder that in turn define other placeholders. This is referred to as nested placeholders.

132
Q

Why is it a good idea to avoid using Rich Text fields as much as possible?

A

One of the benefits of using Sitecore is the separation of content and presentation. The Rich text field is the only exception to this, as it stores HTML content directly. If abused and not configured properly, it may give users the ability to break the design of the site.

133
Q

What do you need to do to allow users to add and remove components from a placeholder using the Experience Editor?

A

Create a Placeholder Settings item for that placeholder.

134
Q

Happens when you request a page that has no layout defined in the presentation details?

A

Sitecore shows a Layout not found error page.

135
Q

Why do you define Presentation Details on Standard Values if the Standard Values item is never going to be mapped to the requested URL?

A

You want to define those Presentation Details as a default for all items based on that template. This will allow items to have valid presentation details already set when they are created.

136
Q

Can you edit an item in the Experience Editor when the item has no presentation details set?

A

No, since it cannot be presented.

137
Q

Which fields are editable inline using the Experience Editor?

A

Text fields (Single-Line, Multi-Line, Rich Text), Date/datetime, Image, General Link.

138
Q

Give an example of when you would use the DisableWebEdit parameter when rendering a field.

A

Rendering a field inside the tag in the of the HTML.

139
Q

How does Sitecore define a type of item (data schema)?

A

Using data templates

140
Q

What is the name of the feature that makes WCM possible in Sitecore?

A

Experience Management ( xManagement)

141
Q

What do you need in addition to the Experience Management to take full advantage of the Sitecore Experience Platform?

A

You need the Experience Database to take full advantage of the available features. It supports the Analytics and Marketing features.

142
Q

Are all items pages in a Sitecore project?

A

No, items that are pages have their presentation details set.

143
Q

What is the recommended version of Visual Studio for Sitecore development?

A

Any version that supports the .NET framework 4.0 will work for Sitecore development.

144
Q

What tools can you use to install Sitecore?

A

Manual or zip file, EXE, Sitecore Rocks, SIM

145
Q

What additional databases are required when running xDB?

A

Collection Database (MongoDB), Reporting, Session State

146
Q

How do you patch in changes to the “sitecore” section of web.config?

A

Put a .config patch file in the App_Config/Include folder

147
Q

You have just created new content but you cannot see it on your live website. Why not?

A

You need to publish new or edited content.

148
Q

When you set up multiple site structures in the content tree, what is the recommended practice for handling content that will be shared between sites?

A

Keep it outside of any site structure.

149
Q

What types of Visual Studio projects does Sitecore support?

A

ASP.NET Web Application, supporting MVC or Web Forms

150
Q

How can you make your Visual Studio project portable?

A

By working outside the webroot

151
Q

What is the difference between publishing and deploying?

A

Publishing copies items from the Master to Web databases while deploying copies files from your Visual Studio project to your webroot.

152
Q

Name some the attributes that can be configured in the site node for a website. (think SiteDefinition.config file).

A

Name, host name, rootPath, startItem, language

153
Q

What are some of the features of Sitecore Rocks?

A

Integration with Visual Studio. Creating and editing items, management tools, viewing website file system

154
Q

To provide a rich user experience, what are some recommended practices you should use when you create templates?

A

Provide default values, use user friendly names and icons, limit the use of Rich Text Editors.

155
Q

Where are default field values defined?

A

On the Template Standard Values item

156
Q

Why is storing media in the Sitecore database an advantage?

A

It makes publishing easier because the item and the media are both published so you do not have to keep files in sync.

157
Q

What item setting needs to be specified for authors to be able to add content?

A

Insert options

158
Q

What is the recommended practice for setting insert options?

A

Insert options are set on the Template Standard Values item

159
Q

Describe the anatomy of a Sitecore Layout?

A

A code file on the file system and definition item in the content tree

160
Q

How is the layout file linked to the definition item?

A

By the Path field on the definition item.

161
Q

How do you display the contents of a field in code?

A

@Html.Sitecore().Field(“”)

162
Q

What can you use to translate fields and Help texts in the Sitecore Client?

A

Sitecore Dictionary entries

163
Q

Which type of component would you create if you wanted to closely follow MVC patterns or invoke complex logic?

A

Controller Rendering

164
Q

True or False: The view should contain all the business logic.

A

FALSE

165
Q

What happens if allowed controls are not specified on a placeholder settings item?

A

In the Experience Editor, the user will be able to add any component to the placeholder.

166
Q

How do you make Sitecore recognize of a controller rendering?

A

Create a component definition item and set the controller and controller action. Additionally, you can also set an Area.

167
Q

You want to ensure header and footer are always visible on your Main layout. Will you statically or dynamically bind it?

A

Statically bind it when you need it to always appear on a layout or rendering.

168
Q

What is the difference between the Renderings and Final Renderings fields?

A

The Rendering field is shared between all item versions and is used for global changes;
The Final Renderings field is not shared and stores language and version-specific changes.

169
Q

An author adds a component to a page in the Experience Editor and the selects the Associated Content dialog box automatically appears. What triggers this behavior?

A

The component’s Datasource Location field is filled in.

170
Q

How can you restrict authors to specific types of item for a component’s data source?

A

Add the data template to the component’s Datasource Template field.

171
Q

How are component parameters stored in the Sitecore database?

A

As clear text in URL query string format

172
Q

What data template must be used as a base template for your Parameters Template?

A

The Standard Rendering Parameters template

173
Q

You have created a new Parameters Template. How do you ensure your component to uses it?

A

On the component’s definition item in the Parameters Template field

174
Q

What are Compatible Renderings?

A

Components that can be exchanged or replaced with each other

175
Q

What should you keep in mind when configuring Compatible Renderings?

A
  • They should be set on both components so you can exchange them.
  • Both need to be in the Allowed Controls for any placeholders they will appear in.
  • They may need to share data source and parameters.
176
Q

You have a component you would like cached anywhere it is used. Where would you define its cache settings?

A

On the component definition item in the Sitecore tree.

177
Q

Why should you never cache a component that displays personal information?

A

Another visitor to your site can see that information

178
Q

You have a component that you want cached on every Event Details page. Where would you define its cache settings?

A

On the component on the Event Details Template Standard Values item.

179
Q

Why would you want to have the languageEmbedding option set to never?

A

The site is not multilingual.

180
Q

How would an author cause a broken link when renaming an item?

A

The URL is usually made using the item names.

=> If the page was bookmarked in the browser, it will no longer work. You will need to implement 301 redirect logic.

181
Q

How would you disable .aspx being added to all URLs that are generated from Sitecore?

A

By changing the addAspxExtension attribute of the LinkManager.

182
Q

How can you globally change characters in the URLs that are generated from and resolved from Sitecore?

A

Using the encodeNameReplacements option in the web.config.

183
Q

In which situations would you want to change the Links that are generated for an individual link?

A

If you need to force the language of content that is to be rendered from Sitecore.

184
Q

Why is it important to have friendly folder structures within your content tree?

A

Because they dictate the segments that are within your URL.

185
Q

How would you display the direct children of the Home item?

A

By retrieving the Home item using the Sitecore.Context.Site.StartPath.By invoking the GetChildren() method.

186
Q

What is the danger of using a method like Axes.GetDescendants()?

A

It retrieves recursively all the children of all the children of the item. If invoked in an item near the root, it would load the entire tree in memory, with the corresponding performance penalty.

187
Q

How can you skip certain items when you build the navigation?

A

Use LINQ to filter by template or the value of a particular field.

188
Q

How would you render the content of an Image field on the website?

A

@Html.Sitecore().Field().FieldRenderer.Render()

189
Q

What happens if you use one of those methods to render a Multilist field?

A

It would render the raw value of the field: pipe-delimited GUIDs

190
Q

How would you render a Multilist field?

A

By retrieving its value in code and using it to create some output.

191
Q

What class would you use to retrieve the contents of a Tree list field?

A

Sitecore.Data.Fields.MultilistField

192
Q

How do you get the children items of an item?

A

.Children.GetChildren()

193
Q

In what order do children item appear by default?

A

Alphabetically

194
Q

Why would you preferably avoid sorting items in code, for example, using LINQ?

A

It might confuse authors to see items appear in a different order to the order shown in the Content Editor.

195
Q

What is the name of the pop-up window in the Experience Editor that can be used to edit fields that are not editable inline?

A

A Field Editor

196
Q

How would you enable the use of a Field Editor?

A

By adding a Field Editor Button to a toolbar

197
Q

How would you show a toolbar in a random part of the page?

A

Using an Edit Frame

198
Q

How would configure the buttons shown in an Edit Frame?

A

By creating some definition items in the Core databaseBy adding the Buttons property to the Field Editor

199
Q

What is the biggest challenge when you post forms with Sitecore MVC?

A

Having multiple controllers invoked in the same page request. Only one of them should handle the post.

200
Q

How do you bind a controller to deal with the post of a View Rendering?

A

By filling the Form Controller Name and Form Controller Action fields in the definition item of the View Rendering

201
Q

What method do you need to invoke inside a View Rendering form to ensure only its controller reacts to the post?

A

Html.Sitecore().FormHandler()

202
Q

Why should you not crate or modify items directly on the web database?

A

If the changes only exist on the web database they will get lost during the next publish operation.

203
Q

What three pieces of information do you require to create an item?

A

Name, Template, Location (parent node)

204
Q

How can you run part of your code with a set of privileges different from those of the context user?

A

UserSwitcher, SecurityDisabler

205
Q

Why does Sitecore not allow the use of certain characters in an item name?

A

Item names are used to form the URLs. Some characters have a special meaning in a URL.

206
Q

What methods do you invoke when you begin and finish editing an item through the API?

A

.Editing.BeginEdit()

.Editing.EndEdit()

207
Q

What two core services conform the Sitecore Services Client?

A

ItemService, EntityService

208
Q

What is the difference between a profile card and a pattern card?

A

A profile card is used to profile content. It acts as a preset of profile keys and values., Used during personalization or contact segmentation, pattern cards define archetypes to compare with the current profile of a contact and establish which one corresponds most closely with the interests of the visitor.

209
Q

How can authors change a component through personalization?

A

They can change its data source, hide it, or exchange it for another component.

210
Q

What do you need to do to support the use of personalization?

A

Componentize the page, and use data sources whenever possible.

211
Q

Which item versions can have individual presentations defined on them

A

Numbered and language versions of an item

212
Q

How do you access the Layout Details window for each item?

A

In Content Editor or Experience Editor click the Details command. In Sitecore Rocks choose Tasks -> Design Layout

213
Q

What is the difference between the Shared Layout tabs versus the Final Layout tab of the Layout Details window?

A

The Shared Layout tab is for defining presentation details for all versions of an item while the Final Layout tab focuses on the presentation detail of that specific version of the item.

214
Q

What will Return?

A

The context item.

215
Q

Name two axes available in Sitecorequery:

A
  • ancestor-or-self::, - parent::
216
Q

Why shouldn’t you query the entire content tree?

A

Expensive –particularly if you are iterating through all descendants

217
Q

Unless you are doing a very simple query on a very limited area of your Sitecore tree, what should you use instead?

A

Sitecore Search

218
Q

What does the Datasource Location field automatically do in the Experience Editor?

A

Opens the Select the Associated Content dialog when authors add a new component

219
Q

What happens if the Datasource Location and the Datasource Template fields are both filled in?

A

The “Select the Associated Content” dialog opens and authors can create a new content item using the template specified

220
Q

What happens if the Datasource Location field is empty, but the Datasource Template field is not?

A

The dialog doesn’t open automatically, but when the author requests it, they see the whole tree with irrelevant items ghosted

221
Q

What is the benefit of rendering Parameters Templates to authors?

A
  • Reduces errors
  • Authors do not have to specify the parameter name,
  • Authors can choose values from dropdowns.
222
Q

Which data template is used as a base template for your Parameters Template?

A

Standard Rendering Parameters template

223
Q

If you want your component to use this new Parameters Template, where do you assign it?

A

On the components definition item in theParameters Templatefield

224
Q

When you add to your sublayout, what must you do for the placeholder to be selectable in the Experience Editor?

A

Create a Placeholder Settingsdefinition itemin Sitecore

225
Q

What else do these Placeholder Settings items allow you to specify for authors?

A

Which components authors can insert into a placeholder.

226
Q

What are Allowed Controls

A

They determine which components can be added to a particular placeholder

227
Q

Which Experience Editor mode supports adding components into placeholders?

A

Designing

228
Q

If a component is not in the Allowed Controls list, can it be added into that placeholder through the Experience Editor?

A

No

229
Q

What are Compatible Renderings

A

Components that can be used in place of another component

230
Q

What two elements should you keep in mind when setting up Compatible Renderings?

A

Both components need to be able to accept the same Datasource and the same Parameters

231
Q

If a component is not in the Allowed Controls list, can it still be used as a Compatible Rendering?

A

No

232
Q

Once Custom Experience buttons are assigned, where do they show up?

A

On a component / field and displayed in the Experience Editor

233
Q

Name two examples of custom buttons:

A

FieldEditorandWebEditbuttons

234
Q

On what type of definition item can you assign Custom Experience buttons?

A
  • component definition item or

- a field definition item

235
Q

What do Edit Frames do?

A

Surround an area on a page or component and display buttons allowing you to edit fields that would not be normally editable in the Experience Editor

236
Q

In which database do you create the Custom Experience buttons and Edit Frames?

A

Core

237
Q

Use a bucket when …

A

You do not need a hierarchical item structure and/or you have a large number of items

238
Q

In order to store an item in a bucket, you must…

A

Make that item or the data templates standard values it is based on bucket able

239
Q

After making changes to the bucket ability of the items in a bucket, you must…

A

Sync the bucket

240
Q

What do facets allow you to do?

A

Progressively apply filters (based on fields) to narrow down your result set

241
Q

How do you create a bucket?

A

Select the item you want to turn into a bucket and click the ‘Bucket’ command on the Configure tab

242
Q

What defines how Sitecore items should be indexed?

A

Index configuration files in /App_Config/Include

243
Q

Search is built using a provider model. What does this mean?

A

You can plug in whatever search provider you want

244
Q

What syntax do you use to query an index?

A

LINQ

245
Q

What is the name of Sitecores default search result class?

A

SearchResultItem

246
Q

When building your own search result class, how do you account for fields with spaces?

A

Decorate with [IndexField(“Page Heading”)]

247
Q

What method should you use to return a rich results object?

A

GetResults();

248
Q

You can configure how fields get indexed by type or…

A

Name

249
Q

You can include/exclude by individual field names or…

A

ItemTemplates

250
Q

Which attribute must be set to ‘YES’ in order for values to be stored in the index?

A

storage Type

251
Q

Which two search providers does Sitecore ship with?

A

Lucene and Solr

252
Q

If you wanted to store the number of comments a news article has, what type of field might you use to perform the calculation?

A

A computed field

253
Q

Why should you tune your index configuration and not index everything by default?

A

Large, unwieldy index as your solution grows

254
Q

What are the three layers that the item cache mechanism have?

A
  • Item
  • Data
  • Prefetch
255
Q

What operation clears the HTML cache?

A

Publishing

256
Q

What is the path for .aspx page that clears all cache?

A

/Sitecore/admin/cache.aspx

257
Q

Cache settings are defined in what file?

A

web.config

258
Q

Name three places where component HTML caching options can be defined

A
  • Definition item, - Standard Values, - per|instance of the component
259
Q

Name three places where component HTML caching options can be defined

A
  • Definition item
  • Standard Values
  • per|instance of the component
260
Q

Name the 3 publishing modes

A
  • Incremental, - Smart, - Republish
261
Q

Name the 3 publishing modes

A
  • Incremental
  • Smart
  • Republish
262
Q

Publishing restrictions can be applied to _____ , _____ and _____

A

Numbered versions of items, the item itself and targets

263
Q

What are the recommended servers for an installation and which databases are on each server for a production environment?

A
  • CM with core, master and web, - CD with core and web, - Separate DB server, -xDB with separate collection, reporting and aggregation servers
264
Q

What are the recommended servers for an installation and which databases are on each server for a production environment?

A
  • CM with core, master and web
  • CD with core and web
  • Separate DB server
  • xDB with separate collection, reporting and aggregation servers
265
Q

Name two development models

A

Inside and outside the web root

266
Q

Which is the best practice?

A

Development outside the web root

267
Q

What are the options to source control your items?

A

You can serialize your items for source control with Sitecore Rocks or use a product like TDS to do it.

268
Q

What is the recommended way of patching in changes to web.config?

A

Patch web.config with include files, located under /App_Config/Include

269
Q

What are Sitecore packages and what do they contain?

A

Zip files that contain items and code files

270
Q

What is the name of the .aspx that you go to when upgrading Sitecore?

A

/sitecore/admin/updateinstallationwizard.aspx

271
Q

Which application (in sitecore start menu) is used to view the resolved access rights

A

Access Viewer

272
Q

You can assign access rights to _____ and _____

A

Users and roles

273
Q

Can access be explicitly given to a user to override the role access right?

A

Yes

274
Q

Name three permissions that are applied to access rights

A

Allow, deny and not specified = deny

275
Q

What are workflows used for?

A

Content approval, versioning and tracking

276
Q

Items go through a series of ______

A

States

277
Q

Each state can contain certain ______ and ______

A

Commands and Actions

278
Q

When is an item publishable?

A

In the Final State

279
Q

When is a new numbered version created?

A

When an items version is in a final workflow state and then subsequently is edited by a non-Administrator.

280
Q

What tool will show you all contacts that have been to your site?

A

Experience Profile

281
Q

How does Sitecore store visitor data?

A
  • Data is collected in a MongoDB collection database, - That information is aggregated and stored in a SQL Server database optimized for reporting
282
Q

How does Sitecore store visitor data?

A
  • Data is collected in a MongoDB collection database

- That information is aggregated and stored in a SQL Server database optimized for reporting

283
Q

Goals can be assigned to specific items and/or …

A

They can be triggered programmatically

284
Q

What s the purpose of testing?

A

Establish which content or components makes your visitors react more favorably

285
Q

When can authors start a test?

A

As part of workflow–whenever they have made a change on a page

286
Q

What can be tested?

A

Content, components or entire pages

287
Q

What to do to make sure your author can use the testing functionality?

A
  • Add ‘Launch Create Test Dialog’ to workflow, - Make sure the Experience Editor works and is configured correctly, - Ensure components that should be tested are configured to accept data sources
288
Q

What to do to make sure your author can use the testing functionality?

A
  • Add ‘Launch Create Test Dialog’ to workflow
  • Make sure the Experience Editor works and is configured correctly
  • Ensure components that should be tested are configured to accept data sources
289
Q

How does componentization and use of data sources support personalization?

A

As a visitor navigates around the site, components can be added / hidden or their data changed to match a particular pattern card or profile key score

290
Q

Best Practice: Why use Project Folders?

A

If there are many data templates, it is best to group them into subfolders for organization

291
Q

Best Practice:Avoid Circular Inheritance

A

Although you can use a data template multiple times in the inheritance chain, you should avoid creating a circular template inheritance (A > B > A).

292
Q

Tip:View Template Hierarchy by

A

Right-click the item and click Navigate->Template Hierarchy. Two icons allow you to see inherited and inheriting data templates

293
Q

Best Practice:Nesting Sub layouts

A

Sub layouts routinely have 1 or more placeholders which allow nested sub layouts to be added., An example, a two-column sub layout will have 2 placeholders in divs with styling., Then add other sublayouts into each of those “columns”.

294
Q

Helpful Code:What are some commonly Used Item Properties

A

item.Namethe item’s name, item.IDthe GUID (Globally Unique ID), item.ParentIDthe GUID of the item’s parent, item.Childrena Collection of type ChildList of the first level descendants

295
Q

Helpful Code:What are some commonly Used Item Properties

A
  • item.Namethe item’s name
  • item.IDthe GUID (Globally Unique ID)
  • item.ParentIDthe GUID of the item’s parent,
  • item.Childrena Collection of type ChildList of the first level descendants
296
Q

Best Practices:Edit Field Values in a Try/Catch Block:

A

Try:item.Editing.BeginEdit() and item.Editing.EndEdit(),
Catch:Editing.CancelEdit() should go in the catch block
Also, without the EndEdit, the new field values are not saved to the database.