Monday, June 25, 2018

Sitecore Interview Questions

Question
Answer
Name two key components that make up
Experience CMS, and marketing platform
Sitecore XP
Name some of the sites that you can refer
SDN, Knowledge Base, Marketplace, Sitecore
to for more information and module
Sitecore XP 8 Documents
downloads
What should you do before contacting
Refer to Help Desk best practices
support?
What are your responsibilities as a
Build according to recommended practices
developer?
Name three Sitecore interfaces
Desktop, Content Editor, Experience Editor
Everything in Sitecore is an...
Item
An item is not a...
File
An item's URL is determined by...
Its position in the Content tree
Name the process by which items are
synchronized between the master and web
Publishing
database
Which Experience Editor mode would you
Designing mode
use to add a new component
Which Experience Editor mode would you
Editing mode
use to add an image or edit text?
Maps URL to an item in the content tree and d
When a request comes in, Sitecore...
assembles presentation
Name the three databases that are
master, web, and core
installed by default
Name some foundation features that
Content versioning, multi-language support, d
Sitecore provides out of the box
(adaptive design) support
What is the name of the digital marketing
management part of the Experience
xDB (or Experience Database)
Platform that collects and aggregates
contact information?
An item's type is determined by the
Data template
______ used to create it.
What is an item composed of?
Field sections and fields
What do you need to specify when creating
Field name and type
a new field?
In the Content Editor, where can you find
out which data template an item is based
Quick Info section on that item
on?
Some examples of field types are...
Single-Line Text, Rich Text, Image, Date
In which scenario would you use data
template inheritance?
When fields are repeated in multiple data tem
Why is it important to think of your data
template creation and inheritance structure
Refactoring template inheritance may cause d
from the beginning?
By default, all data templates eventually
Standard Template
inherit from which Sitecore data template?
What happens if the same field section
- The field sections will merge
name is used in multiple templates in a
data template's inheritance tree?
- Fields will be listed under this single section
What happens if the same field name is
- Fields do not merge
used in two separate inherited data
- Both fields will appear
templates?
- Best to avoid reusing the same field names
- Always named __StandardValues
- Child item of owning data templates
Describe the standard values item
- Is a special instance of an item --contains all
fields
What type of settings can be applied to
Default field values, default insert Options, de
standard values?
presentation, default Workflow
What are the two types of default field
Dynamic (uses tokens) and Static.
values?
Tokens are replaced when an item is created.
How do tokens work?
there are tokens for the name of the item or th
parent item.
Any three of the following:
Name three tokens:
$name, $date, $id, $parentid, $parentname, $
$date
A list of item types (data templates) that can b
What are the Insert Options?
under a specific item.
Where Insert Options should be
On the data template's standard values which
configured?
overridden at item level.
Why is it a good idea to configure Insert
All items using that data template will have the
Options on standard values?
Options.
What are presentation details?
Configuration that determines what an item lo
requested by the browser.
Normally, a URL points to an HTML file. In Sit
Describe how Sitecore resolves a page in
request maps to an item and the page is dyna
comparison to a static HTML site.
assembled from smaller pieces.
What is the name of the main Sitecore .dll?
Sitecore.Kernel.dll
What happens if you do not set Copy
Some dll's in bin folder will be deleted and you
Local to False for you Sitecore.Kernel
get the full set from another installation to con
reference?
In a Sitecore context, what is the name
A Layout
given to an .aspx file?
How is a Layout definition item connected
The Path field on the Layout definition item po
to a Layout file?
location of the .aspx file.
How do you configure an item's
Right-click->Tasks->Design Layout or CTRL+
presentation details in Sitecore Rocks?
also use Command
How many Layouts can you assign to a
One -- Per Device
single item?
Name three different types of Sitecore
Sub layout, XSLT rendering, web control
components
What type of file is a Sitecore Sub layout?
.ascx
A component consists of a file on the file
A definition item in Sitecore
system and...
How does a component definition item
By a Path field on the definition item
where to find the associated file?
- New page types can be assembled from exi
components
- Changes to page structure do not require a
What are the benefits of dynamic binding?
- Supports content re-use (more in Module 5
- Supports Site
core’s personalization and testing features
What is the Sitecore control that allows you
to dynamically bind components to a
sc:Placeholder
page?
What is the Sitecore control to statically
sc:Sublayout
include Sub layouts on a page?
Describe the process by which a
Open presentation details -> Add Rendering -
component is bound to a placeholder?
rendering -> Edit Placeholder Key property
Name the property that you must set on a
Key
placeholder to identify it.
If all items of a particular type require a
particular component, where should these
On the standard values of the data template
presentation details be configured?
What type of components might be good
Page scaffolding, like headers and footers
candidates for static binding?
Name three specialized Sitecore field
, ,
controls
How can Sitecore help you resize images
Set MaxWidth and/or MaxHeight onthe sc:Ima
dynamically?
Field
Name the one mandatory property that
must be specified on the Sitecore web
controls
(note: on , the equivalent is FieldName)
Sitecore.Data - CRUD operations, item ma
Sitecore Namespaces
Sitecore.Context - Information about curre
Sitecore.Links - Links management
• Sitecore.DateUtil
• Sitecore.IO.FileUtil
Useful in-built utilities
• Sitecore.StringUtil
• Sitecore.UIUtil
• Sitecore.MainUtil
In which .dll can you find the majority of the
Sitecore.Kernel
API?
When Sitecore makes a request, what is
the name of the static class that is
Sitecore.Context
assembled?
Name four properties that you might get
Context user, language, database and item.
from Sitecore.Context:
When you are looking at a page in
Experience Editor mode, what is the
Master
context database?
Name the method used to retrieve items?
GetItem()
Items can be retrieved by path or…
By ID
What does the
Sitecore.Context.Item.Database property
Web
return in the context of a live website
visitor?
How should you compare two items in
Using their IDs
code?
What method do you use to retrieve an
LinkManager.GetItemUrl()
item’s URL?
Why should you not useGetDynamicUrl()
for your site’s front end?
Unreadable ‘developer’ URL, uses IDs
What object can you pass into the
GetItemUrl() method to customize the way
A UrlOptions object
your item’s URL is rendered?
Where can you customize how URLs are
In the LinkManager section of the web.config
rendered globally?
Sitecore security is an extension of...
Standard .NET membership
All code is executed in the context of...
The current user
What affects whether or not a piece of
That user's permissions
code will run?
What permissions does
Permission to create or edit items
extranet\anonymous lack by default?
When creating or editing an item, the code
must be executed with the appropriate
UserSwitcher or SecurityDisabler
security rights. Name two ways that this
can be done.
How do you put an item into an editing
Creating an EditContext
state?
Why should you create / edit items in the
Web overwritten by publish.
master rather than the web database?
Why is it a bad idea to output a field’s
Not editable in Experience Editor and comple
value straight to the screen?
contain custom XML
Which field types are suitable for editing
Simple text fields. For example, Single-Line T
using the .Value property?
• Transforms field content into valid HTML - S
controls ultimately go through this method
• Automatically makes fields editable in Exper
Why should you use
• Allows you to pass in parameters that match
FieldRenderer.Render()?
available in Sitecore controls -for example: im
width
• Translates dynamic links in Rich Text Editor
SEO-friendly URLs
Why is it a bad idea to output raw values to
Not editable in Experience Editor, complex fie
the screen?
not make sense - images, for example
Name the best suited field object for the
following field types: single-line text, tree
Field, MultilistField, ReferenceField, LinkField
list, drop link, general link:
What method should you use to render the
FieldRenderer.Render() - Experience Editor s
contents of text, date, Image and link fields
transforms custom XML, transforms Rich Text
to the screen (and why)?
Why are you unable to render a multilist
It contains IDs, not readable content
field to the page using .Render ()?
Setting a component Datasource allows
Output content from a content item elsewhere
that component to _____.
How can you force a Sitecore control to
output the content of an item’s
Set DataSource or Item property
Datasource?
What do parameters allow you to do?
Allow properties to be set per instance of a co
How are parameters encoded when sent
As a URL query string, that is:key1=value1&k
to your component?
What utility converts parameter lists to a
WebUtil.ParseUrlParameters()
NameValueCollection?
Why would you set the Data source for a
When that Datasource should only be used o
component on the presentation details of
page
an item?
Why would you set the component and the
When you want all items based on a particula
Datasource on the standard values’
have that component with that particular Data
presentation details?
default
Why would you set the component on the
When your component has to appear on ever
standard values and override the
has a different Datasource for a particular pag
Datasource on the item?
When presentation coming from the standard
When does a layout delta get created?
item’s templates overridden on that item.
How does the XML of a layout delta differ
Layout deltas only contain differences betwee
standard value presentation and any changes
author on the item.
from the XML specified on a template’s
standard values?
The standard value XML contains all presenta
What can you do with methods that could
Abstract code to a generic utilities project
be used across multiple Sitecore projects?
Why can’t you preview items under
They do not have presentation details
Global?
Why is the Settings item outside any
Values shared across all sites
individual site folder structure?
What kind of content can you display using
Promotions, announcements -anything that c
a General Widget?
used across the site
Name 2 devices you may want to target
Tablets and mobiles
with different presentation details:
When will Sitecore use the language
If there is no explicit language in the URL nor
attribute of the site definition in the
cookie.
web.config?
How do visitors to your site change the
You have to build language switching for the f
site’s language?
yourself - using a query string, for example
What kind of error checking should you do when
Check that each item has a version i
rendering items to the screen?
language
What are some important considerations with a
Large codebase, sites affect each oth
multi-site implementation?
performance - see Multi-site slide for
Which shared field is used to store presentation
__Renderings field
information for all versions of an item?
What does the presence of the __Final Renderings
To define individual presentation deta
field allows an author to do?
version of an item
Which item versions can have individual
Numbered and language versions of
presentations defined on them
In Content Editor or Experience Edito
How do you access the Layout Details window for
Details command. In Sitecore Rocks
each item?
->Design Layout
The Shared Layout tab is for defining
What is the difference between the Shared Layout
details for all versions of an item whil
tabs versus the Final Layout tab of the Layout
Layout tab focuses on the presentati
Details window?
that specific version of the item.
What will .return?
The context item.
Name two axes available in Sitecore query:
ancestor-or-self::, parent::
Expensive - particularly if you are ite
Why shouldn’t you query the entire content tree?
all descendants
Unless you are doing a very simple query on a very
limited area of your Sitecore tree, what should you
Sitecore search
use instead?
How does Sitecore support each of
Data definition: data templates. Content: items.Presen
the CMS pillars:Data definition,
layouts and components
Content, and Presentation?
Describe some xWeb Content
Management System features that
AIDA: Analytics, Insights, Decisions, Automation.(Also
separate Sitecore from other
tracking, testing, reporting, personalization)
systems
What is Site core’s easy-to-use
authoring tool and what
functionality does it provide?
The Experience Editor provides editing and designing
(Also accept: marketing)
Which interface would an author
use to see and edit items in a tree
Content Editor
structure?
What should you define in a
Fields, Field sections, Icon and parent templates
template?
What field type would you use to
Rich Text Field
store formatted HTML?
What happens if you use the same
You will get two fields with the same name, whichlead
field name in a template that is
confusion both to users and developers. It should be
already used in a parent template?
What is the name of the template
Standard Template
all templates should inherit from?
Why should you avoid defining the
same field multiple times in more
It makes it much harder to manage later on.
than one template?
What would you use the Field
Image: Set the folder in the Media Library it will open
source for in the following field
selecting an image for the field.
types: Image, Rich Text Field, Drop
link?
Rich Text: Configuration of the toolbar and functionalit
Text Editor.
Drop link: Set the items to be displayed as options.
Why do you create Standard
To be able to define default and initial values
values? As options.
What happens if you don't set any
Only admins and privileged users will be able to creat
insert options?
(using the Insert from template option).
Where should you set insert
In the Standard Values, so they are applied as a defa
options as a best practice?
created items.
A shared field contains a single version of the data for
What happens when you set a field
in all languages. An unversioned field contains one ve
as shared? And unversioned?
data per language.
When do tokens get replaced?
Only when items are created.
Why would you need to run a full
Theoretically, you should not need to do this as a use
republish?
If you set up some publishing
restrictions, will Sitecore
No. The publishing restrictions only dictates when an
automatically publish that content
versions are publishable or not.
at that exact time?
In terms of schema, there is no difference. The differe
What is the difference between the
conceptual, in that, content for the live website is read
Master and Web database?
Web database and content that is work-in-progress sh
edited in the Master database.
Should a user work directly in the
A user should never work directly in the Web databas
Web database if they need
they should not even be able to access the Web data
something to go live immediately?
authoring tools.
Why would I want to use the data
The data source allows you to build more flexible and
source in a component?
components because the data source is determined b
not hardcoded by developers.
Not directly. However, you can have components insid
Can we have placeholders inside
placeholder that in turn define other placeholders. Thi
of placeholders?
to as nested placeholders.
One of the benefits of using Sitecore is the separation
Why is it a good idea to avoid
and presentation. The Rich text field is the only excep
using Rich Text fields as much as
as it stores HTML content directly. If abused and not c
possible?
properly, it may give users the ability to break the des
What do you need to do to allow
users to add and remove
Create a Placeholder Settings item for that placeholde
components from a placeholder
using the Experience Editor?
Happens when you request a page
that has no layout defined in the
Sitecore shows a Layout not found error page.
presentation details?
Why do you define Presentation
Details on Standard Values if the
You want to define those Presentation Details as a de
Standard Values item is never
items based on that template. This will allow items to
going to be mapped to the
presentation details already set when they are create
requested URL?
Can you edit an item in the
Experience Editor when the item
No, since it cannot be presented.
has no presentation details set?
Which fields are editable inline
Text fields (Single-Line, Multi-Line, Rich Text), Date/d
using the Experience Editor?
Image, General Link.
Give an example of when you
would use the DisableWebEdit
Rendering a field inside the tag in the of the HTML.
parameter when rendering a field.
How does Sitecore define a type of
Using data templates
item (data schema)?
What is the name of the feature
that makes WCM possible in
Experience Management ( xManagement)
Sitecore?
What do you need in addition to
the Experience Management to
You need the Experience Database to take full advan
take full advantage of the Sitecore
available features. It supports the Analytics and Marke
Experience Platform?
Are all items pages in a Sitecore
No, items that are pages have their presentation deta
project?
What is the recommended version
Any version that supports the .NET framework 4.0 wil
of Visual Studio for Sitecore
Sitecore development.
development?
What tools can you use to install
Manual or zip file, EXE, Sitecore Rocks, SIM
Sitecore?
What additional databases are
Collection Database (MongoDB), Reporting, Session
required when running xDB?
How do you patch in changes to
the "sitecore" section of
Put a .config patch file in the App_Config/Include folde
web.config?
You have just created new content
but you cannot see it on your live
You need to publish new or edited content.
website. Why not?
When you set up multiple site
structures in the content tree, what
is the recommended practice for
Keep it outside of any site structure.
handling content that will be shared
between sites?
What types of Visual Studio
ASP.NET Web Application, supporting MVC or Web F
projects does Sitecore support?
How can you make your Visual
By working outside the webroot
Studio project portable?
Publishing copies items from the Master to Web datab
What is the difference between
deploying copies files from your Visual Studio project
publishing and deploying?
webroot.
Name some the attributes that can
be configured in the site node for a
Name, host name, rootPath, startItem, language
website. (think SiteDefinition.config
file).
What are some of the features of
Integration with Visual Studio. Creating and editing ite
Sitecore Rocks?
management tools, viewing website file system
To provide a rich user experience,
what are some recommended
Provide default values, use user friendly names and i
practices you should use when you
use of Rich Text Editors.
create templates?
Where are default field values
On the Template Standard Values item
defined?
Why is storing media in the
It makes publishing easier because the item and the
Sitecore database an advantage?
both published so you do not have to keep files in syn
What item setting needs to be
specified for authors to be able to
Insert options
add content?
What is the recommended practice
Insert options are set on the Template Standard Value
for setting insert options?
Describe the anatomy of a Sitecore
A code file on the file system and definition item in the
Layout?
How is the layout file linked to the
By the Path field on the definition item.
definition item?
How do you display the contents of
@Html.Sitecore().Field(“<Field name>")
a field in code?
What can you use to translate
fields and Help texts in the Sitecore
Sitecore Dictionary entries
Client?
Which type of component would
you create if you wanted to closely
Controller Rendering
follow MVC patterns or invoke
complex logic?
True or False: The view should
False
contain all the business logic.
What happens if allowed controls
In the Experience Editor, the user will be able to add a
are not specified on a placeholder
component to the placeholder.
settings item?
How do you make Sitecore
Create a component definition item and set the contro
recognize of a controller
controller action. Additionally, you can also set an Are
rendering?
You want to ensure header and
footer are always visible on your
Statically bind it when you need it to always appear o
Main layout. Will you statically or
rendering.
dynamically bind it?
What is the difference between the
The Rendering field is shared between all item versio
Renderings and Final Renderings
used for global changes; The Final Renderings field is
fields?
and stores language and version-specific changes.
An author adds a component to a
The component's Datasource Location field is filled in
page in the Experience Editor and
the selects the Associated Content
dialog box automatically appears.
What triggers this behavior?
How can you restrict authors to
Add the data template to the component's Datasource
specific types of item for a
field.
component's data source?
How are component parameters
As clear text in URL query string format
stored in the Sitecore database?
What data template must be used
as a base template for your
The Standard Rendering Parameters template
Parameters Template?
You have created a new
On the component’s definition item in the Parameters
Parameters Template. How do you
field
ensure your component to uses it?
What are Compatible Renderings?
Components that can be exchanged or replaced with
They should be set on both components so you can e
What should you keep in mind
them. Both need to be in the Allowed Controls for any
when configuring Compatible
they will appear in. They may need to share data sour
Renderings?
parameters.
You have a component you would
like cached anywhere it is used.
On the component definition item in the Sitecore tree.
Where would you define its cache
settings?
Why should you never cache a
component that displays personal
Another visitor to your site can see that information
information?
You have a component that you
want cached on every Event
On the component on the Event Details Template Sta
Details page. Where would you
item.
define its cache settings?
Why would you want to have the
languageEmbedding option set to
The site is not multilingual.
never?
How would an author cause a
The URL is usually made using the item names. If the
broken link when renaming an
bookmarked in the browser, it will no longer work. You
item?
implement 301 redirect logic.
How would you disable .aspx being
added to all URLs that are
By changing the addAspxExtension attribute of the Li
generated from Sitecore?
How can you globally change
characters in the URLs that are
Using the encodeNameReplacements option in the w
generated from and resolved from
Sitecore?
In which situations would you want
If you need to force the language of content that is to
to change the Links that are
from Sitecore.
generated for an individual link?
Why is it important to have friendly
folder structures within your
Because they dictate the segments that are within you
content tree?
By retrieving the Home item using the
How would you display the direct
Sitecore.Context.Site.StartPath.By invoking the GetC
children of the Home item?
method.
What is the danger of using a
It retrieves recursively all the children of all the childre
method like
If invoked in an item near the root, it would load the e
Axes.GetDescendants()?
memory, with the corresponding performance penalty
How can you skip certain items
Use LINQ to filter by template or the value of a particu
when you build the navigation?
How would you render the content
@Html.Sitecore().Field().FieldRenderer.Render()
of an Image field on the website?
What happens if you use one of
those methods to render a Multilist
It would render the raw value of the field: pipe-delimite
field?
How would you render a Multilist
By retrieving its value in code and using it to create so
field?
What class would you use to
retrieve the contents of a Tree list
Sitecore.Data.Fields.MultilistField
field?
How do you get the children items
.Children.GetChildren()
of an item?
In what order do children item
Alphabetically
appear by default?
Why would you preferably avoid
sorting items in code, for example,
using LINQ?
It might confuse authors to see items appear in a diffe
the order shown in the Content Editor.
What is the name of the pop-up
window in the Experience Editor
A Field Editor
that can be used to edit fields that
are not editable inline?
How would you enable the use of a
By adding a Field Editor Button to a toolbar
Field Editor?
How would you show a toolbar in a
Using an Edit Frame
random part of the page?
How would configure the buttons
By creating some definition items in the Core databas
shown in an Edit Frame?
the Buttons property to the Field Editor
What is the biggest challenge
Having multiple controllers invoked in the same page
when you post forms with Sitecore
one of them should handle the post.
MVC?
How do you bind a controller to
By filling the Form Controller Name and Form Control
deal with the post of a View
fields in the definition item of the View Rendering
Rendering?
What method do you need to
invoke inside a View Rendering
form to ensure only its controller
Html.Sitecore().FormHandler()
reacts to the post?
Why should you not crate or modify
If the changes only exist on the web database they wi
items directly on the web
during the next publish operation.
database?
Name
What three pieces of information
Template
do you require to create an item?
Location (parent node)
UserSwitcher
How can you run part of your code
with a set of privileges different
from those of the context user?
SecurityDisabler
Why does Sitecore not allow the
Item names are used to form the URLs. Some charac
use of certain characters in an item
special meaning in a URL.
name?
What methods do you invoke when
.Editing.BeginEdit().Editing.EndEdit()
you begin and finish editing an item
through the API?
What two core services conform
ItemService
the Sitecore Services Client?
EntityService
A profile card is used to profile content. It acts as a pr
keys and values.
What is the difference between a
profile card and a pattern card?
Used during personalization or contact segmentation,
define archetypes to compare with the current profile
and establish which one corresponds most closely wit
interests of the visitor.
How can authors change a
They can change its data source, hide it, or exchange
component through
component.
personalization?
What do you need to do to support
Componentize the page, and use data sources when
the use of personalization?
- Build and scale according to recom
practices
What are your roles as a sitecore developer?
- Support Sitecore marketing and ana
features
- Build for the experience editor
- Knowledgebase (support articles)
Where can you find more information?
- Marketplace (modules)
- Developer network (forum, downloa
Before contacting support you should...
- Refer to help desk best practices
- Experience CMS
Name 2 key components of Sitecore XP
-Marketing Platform
- Desktop
Name 3 Sitecore interfaces
- Content Editor
- Experience Editor
Everything in sitecore is an...
Item
An item is not a ...
File
An items URL is determined by...
Its position in the Content Tree
Name the process by which items are synchronized
Publishing
between the master and the web DB
Which Experience Editor mode would you use to
Designing Mode
add a new component?
Which Experience Editor mode would you use to
Editing mode
ass an image or edit text
Maps URL to an item in the content tr
When a request comes in Sitecore...
dynamically assembles presentation.
- Master
Name three databases that are installed by default
- Web
- core
- Content versioning
Name some foundation features that Sitecore
provides out of the box
- multi-language support
- Devices (adaptive design) support
What is the name of the digital marketing
- xDB (or Experience Database)
management part of the experience Platform that
collects and aggregates contact information
An item's type is determined by the _________
Data Template
used to create it.
What is an item composed of?
Field sections and fields
- Field name
What do you need to specify when creating a new
field?
- Type
In the Content Editor where can you find out which
Quick Info section on that item
data template an item is based on?
- Single-Line
- Rich Text
Some examples of field types are...
- Image
- Date
In which scenario would you use data template
When fields are repeated in multiple
inheritance?
templates.
Why is it important to think of your data template
Refactoring template inheritance may
creation and inheritance structure from the
loss.
beginning?
By default, all data templates eventually inherit from
Standard Template
which Sitecore data template?
What happens if the same field section name is
- The field section will merge
used in multiple templates in a data template's
- Field will be listed under this single
inheritance tree?
- Fields do not merge
What happens if the same field name is used in two
- Both fields will appear
separate inherited data templates?
- Best to avoid reusing the same field
- Always named __StandardValues
- Child item of owning data template
Describe the standard values item
- Is a special instance of an item - co
inherited fields
- Default field values
What type of settings can be applied to standard
- Default Insert Options
values?
- Default presentation
- Default Workflow
-Dynamic (uses tokens)
What are the two types of default field values?
-Static
Tokens are replaced when an item is
How do tokens work?
e.x. there are tokens for the name of
the ID of the parent item.
- $name
- $date
- $id
Name three tokens:
- $parentid
- $parentname
- $time
- $now
A list of item types (data templates) th
What are Insert Options?
created under specific item
On the data template's standard valu
Where should Insert Options be configured?
be overridden at the item level.
Why is it a good idea to configure Insert Options on
All items using that data template will
standard values?
same Insert Options
Configuration that determines what a
What are presentation details?
like when requested by the browser
Normally, a URL points to an HTML fi
Describe how Sitecore resolves a page in
Sitecore, a request maps to an item a
comparison to a static HTML site.
dynamically assembled from smaller
What is the name of the main Sitecore .dll?
Sitecore.Kernel.dll
Some dll's in bin folder will be delete
What happens if you do not set Copy Local to false
need to get the full set from another i
for your Sitecore.Kernel reference?
continue working.
In a Sitecore context, what is the name given to
A Layout
an .aspx file?
How is a Layout definition item connected to a
The Path field on the Layout definitio
Layout file?
to the location of the .aspx file
How do you configure an item's presentation details
Right-click->Tasks->Design Layout o
in Sitecore Rocks?
You can also use Commandy
How many Layouts can you assign to single item?
One- per device
- Sublayouts
Name three different types of Sitecore components.
- XSLT rendering
- Wen control
What type of file is a Sitecore Sublayout?
.ascx
A component consists of a file on the system and...
A definition item in Sitecore
How does a component definition item know where
By a Path field on the definition item
to find the associated file?
What is the Sitecore control that allows you to
sc:Placeholder
dynamically bind components to a page?
What is the Sitecore control to statically include Sub
sc:Sublayout
layouts on a page?
Describe the process by which a component is
Open presentation details->Add->Re
bound to a placeholder
>select rendering->Edit PlaceholderK
Name the property that you must set on a
Key
placeholder to identify it.
If all items of a particular type require a particular at
component, where should these presentation
On the standard values of the data te
details be configured?
What type of components might be good
Page scaffolding, like headers and fo
candidates for static binding?
- <sc:Text \>
Name three specialized Sitecore field controls
- <sc:Date \>
- <sc:Image />
How can Sitecore help you resize images
Set MaxWidth and/or MaxHeight on t
dynamically?
tag
Field
Name the one mandatory property that must be
specified on the Sitecore web controls
(note* on <sc:FieldRenderer />, the e
FieldName)
In which .dll can you find the majority of the API?
Sitecore.Kernel
When Sitecore makes a request, what is the name
Sitecore.Context
of the static class that is assembled
Name four properties that you might get from
-Context user
Sitecore.Context
- Language
- Database
- Item
When you are looking at a page in Experience
Master
Editor mode, what is the context database?
Name the method used to retrieve items?
GetItem()
Items can be retrieved by path or ...
By ID
What does the sitecore.Context.Item.Database
property return in the context of a live website
Web
visitor?
How should you compare two items in code?
Using their IDs
What method do you use to retrieve an item's URL?
LinkManager.GetItemUrl()
Why should you not use GetDynamicUrl() for your
Unreadable developer URL uses IDs
site's front end?
What object can you pass into the GetItemUrl()
method to customize the way your item's URL is
A URLOptions object
rendered?
Where can you customize how URLs are rendered
In the LinkManager section of the we
globally?
Sitecore security is an extension of...
Standard .NET membership
All code is executed in the context of ...
The current user
What affects whether or not a piece of code will
The user's permissions
run?
What permissions does extranet\anonymous lack
Permission to creatte or edit items
by default?
When create in or editing an item, the code must be
executed with the appropriate security rights. Name
UserSwitcher or SecurityDisbler
two ways that this can be done.
How do you put an item into an editing state?
Creating an EditContext;
Why should you create / edit items in the master
Web overwritten by publish
rather that the web database?
Why is it a bad idea to output a field's value straight
Not editable in Experience Editor and
to the screen?
fields contain custom XML
Which field types are suitable for editing using
Simple text fields. For example, Singl
the .Value property?
Why is it a bad idea to output raw values to the
Not editable in Experience Editor, co
screen?
types will not make sense -images, f
Name the best suited field object for the following
field types: single-line text, treelist, droplink, general
Field, MultilistField, ReferenceField, L
link:
Q What method should you use to render the
FieldRenderer.Render() -Experience
contents of text, date, image and link fields to the
support, transforms custom XML, tra
screen (and why)?
Text links
Why are you unable to render a multilist field to the
It contains IDs, not readable content
page using .Render ()?
Setting a component Datasource allows that
Output content from a content item el
component to _____.
the tree
How can you force a Sitecore control to output the
Set DataSourceor Itemproperty
content of an item’s Datasource?
What do parameters allow you to do?
Allow parameters to be set per instan
component
How are parameters encoded when sent your
As a URL query string, that is
component?
key=val1&key2=val2
What utility converts parameter lists to a
WebUtil.ParseUrlParameters()
NameValueCollection?
Why would you set the Datasource for a
When the Datasource should only be
component on the presentation details of an item?
particular page
Why would you set the component and the
When you want all items based on a
Datasource on the standard values’ presentation
template to have that component with
details?
particular Datasource as default
When your component has to appear
Why would you set the component on the standard
page but has a different Datasource f
values and override the Datasource on the item?
page
When presentation coming from the s
When does a layout delta get created?
values of an item’s template is overrid
item.
Layout deltas only contain difference
item’s standard value presentation an
How does the XML of a layout delta differ from the
changes made by the author on the i
XML specified on a template’s standard values?
The standard value XML contains all
details.
What can you do with methods that could be used
Abstract code to a generic utilities pro
across multiple Sitecore projects?
What can't you preview items under Global
They do not have presentation detail
Why is the Settings item outside any individual site
Values shared across all sites
folder structure?
What kind of content can you display using a
Promotions, announcements -anythi
General Widget?
be re-used across the site
Name 2 devices you may want to target with
Tablets and mobiles
different presentation details:
When will Sitecore use the language attribute of the
If there is no explicit language in the
site definition in the web.config?
language cookie.
How do visitors to your site change the site’s
You have to build language switching
language?
end yourself -using a query string, fo
What kind of error checking should you do when
Check that each item has a version in
rendering items to the screen?
language
What are some important considerations with a
Large codebase, sites affect each oth
multi-site implementation?
performance -see Multi-site slide for
Which shared field is used to store presentation
__Renderings field
information for all versions of an item?
What does the presence of the __Final Renderings
To define individual presentation deta
field allows an author to do?
version of an item
Which item versions can have
individual presentations defined on
Numbered and language versions of an item
them
How do you access the Layout
In Content Editor or Experience Editor click the Det
Details window for each item?
command. In Sitecore Rocks choose Tasks -> Desi
What is the difference between the
The Shared Layout tab is for defining presentation
Shared Layout tabs versus the Final
versions of an item while the Final Layout tab focus
Layout tab of the Layout Details
presentation detail of that specific version of the ite
window?
What will Return?
The context item.
- ancestor-or-self::
Name two axes available in
Sitecorequery:
- parent::
Why shouldn’t you query the entire
content tree?
Expensive -particularly if you are iterating through
descendants
Unless you are doing a very simple
query on a very limited area of your
Sitecore Search
Sitecore tree, what should you use
instead?
What does the Datasource Location
Opens the Select the Associated Content dialog wh
field automatically do in the
add a new component
Experience Editor?
What happens if the Datasource
The "Select the Associated Content" dialog opens a
Location and the Datasource
can create a new content item using the template s
Template fields are both filled in?
What happens if the Datasource
The dialog doesn’t open automatically, but when th
Location field is empty, but the
requests it, they see the whole tree with irrelevant it
Datasource Template field is not?
Reduces error
What is the benefit of rendering
Authors do not have to specify the parameter name
Parameters Templates to authors?
Authors can choose values from dropdowns.
Which data template is used as a
base template for your Parameters
Standard Rendering Parameters template
Template?
If you want your component to use
On the components definition item in the Paramete
this new Parameters Template, where
Template field
do you assign it?
When you add <sc:Placeholder
Key="myKey" /> to your sublayout,
what must you do for the placeholder
Create a Placeholder Settings definition item in Si
to be selectable in the Experience
Editor?
What else do these Placeholder
Settings items allow you to specify for
Which components authors can insert into a placeh
authors?
They determine which components can be added t
What are Allowed Controls
placeholder
Which Experience Editor mode
supports adding components into
Designing
placeholders?
If a component is not in the Allowed
Controls list, can it be added into that
No
placeholder through the Experience
Editor?
What are Compatible Renderings
Components that can be used in place of another c
What two elements should you keep
Both components need to be able to accept the sa
in mind when setting up Compatible
Datasource and the same Parameters
Renderings?
If a component is not in the Allowed
No
Controls list, can it still be used as a
Compatible Rendering?
Once Custom Experience buttons are
On a component / field and displayed in the Experi
assigned, where do they show up?
Name two examples of custom
FieldEditor and WebEdit buttons
buttons:
-component definition item or
On what type of definition item can
you assign Custom Experience
buttons?
-a field definition item
Surround an area on a page or component and dis
What do Edit Frames do?
allowing you to edit fields that would not be normall
the Experience Editor
In which database do you create the
Custom Experience buttons and Edit
Core
Frames?
You do not need a hierarchical item structure and/o
Use a bucket when ...
large number of items
In order to store an item in a bucket,
Make that item or the data templates standard valu
you must…
on bucket able
After making changes to the bucket
ability of the items in a bucket, you
Sync the bucket
must…
Progressively apply filters (based on fields) to narro
What do facets allow you to do?
result set
Select the item you want to turn into a bucket and c
How do you create a bucket?
‘Bucket’ command on the Configure tab
What defines how Sitecore items
Index configuration files in /App_Config/Include
should be indexed?
Search is built using a provider
You can plug in whatever search provider you want
model. What does this mean?
What syntax do you use to query an
LINQ
index?
What is the name of Sitecores default
SearchResultItem
search result class?
When building your own search result
class, how do you account for fields
Decorate with [IndexField("Page Heading")]
with spaces?
What method should you use to
GetResults();
return a rich results object?
You can configure how fields get
Name
indexed by type or…
You can include/exclude by individual
ItemTemplates
field names or…
Which attribute must be set to ‘YES’
in order for values to be stored in the
storage Type
index?
Which two search providers does
Lucene and Solr
Sitecore ship with?
If you wanted to store the number of
comments a news article has, what
A computed field
type of field might you use to perform
the calculation?
Why should you tune your index
Large, unwieldy index as your solution grows
configuration and not index
everything by default?
- Item
What are the three layers that the
- Data
item cache mechanism have?
- Prefetch
What operation clears the HTML
Publishing
cache?
Which cache is populated when the
Prefetch cache
application starts?
What is the path for .aspx page that
/Sitecore/admin/cache.aspx
clears all cache?
Cache settings are defined in what
web.config
file?
- Definition item
Name three places where component
HTML caching options can be
- Standard Values
defined
- per|instance of the component
What mode in Experience Editor
shows profile, cache settings and
Debug mode
HTML output for individual
components?
- Incremental
Name the 3 publishing modes
- Smart
- Republish
Publishing restrictions can be applied
Numbered versions of items , the item itself and tar
to _____ , _____ and _____
List some benefits of using Sitecore
Checks prerequisites, correct DLLs, logs, remove a
Installer
installation
- CM with core, master and web
What are the recommended servers
- CD with core and web
for an installation and which
databases are on each server for a
- Separate DB server
production environment?
-xDB with separate collection, reporting and aggreg
Name some features of Sitecore
Packages, customize, extend, reinstall & remove in
Instance Manager
Name two development models
Inside and outside the web root
Which is the best practice?
Development outside the web root
What are the options to source
You can serialize your items for source control with
control your items?
Rocks or use a product like TDS to do it.
What is the recommended way of
Patch web.config with include files, located under
patching in changes to web.config?
/App_Config/Include
What are Sitecore packages and
Zip files that contain items and code files
what do they contain?
What is the name of the .aspx that
/sitecore/admin/updateinstallationwizard.aspx
you go to when upgrading Sitecore?
Which application (in sitecore start
menu) is used to view the resolved
Access Viewer
access rights
You can assign access rights to
Users and roles
_____ and _____
Can access be explicitly given to a
Yes
user to override the role access right?
Name three permissions that are
Allow, deny and not specified = deny
applied to access rights
What are workflows used for?
Content approval, versioning and tracking
Items go through a series of ______
States
Each state can contain certain
Commands and Actions
______ and ______
When is an item publishable?
In the Final State
When is a new numbered version
When an items version is in a final workflow state a
created?
subsequently is edited by a non-Administrator.
What tool will show you all contacts
Experience Profile
that have been to your site?
- Data is collected in a MongoDB collection databas
How does Sitecore store visitor data?
- That information is aggregated and stored in a SQ
database optimized for reporting
Engagement is measured using ...
Goals
Goals can be assigned to specific
They can be triggered programmatically
items and/or ...
Establish which content or components makes you
What s the purpose of testing?
more favorably
As part of workflow-whenever they have made a c
When can authors start a test?
page
What can be tested?
Content, components or entire pages
- Add 'Launch Create Test Dialog' to workflow
- Make sure the Experience Editor works and is con
What to do to make sure your author
correctly
can use the testing functionality?
-Ensure components that should be tested are conf
accept data sources
Assigning points in certain categories based on the
What does it mean to profile content?
that a content item is aimed at
How does componentization and use
As a visitor navigates around the site, components
of data sources support
/ hidden or their data changed to match a particular
personalization?
or profile key score
Best Practice: Why use Project
If there are many data templates, it is best to group
Folders?
subfolders for organization
Although you can use a data template multiple time
Best Practice: Avoid Circular
inheritance chain, you should avoid creating a circu
Inheritance
inheritance (A > B > A).
Right-click the item and click Navigate->Template H
Tip: View Template Hierarchy by
icons allow you to see inherited and inheriting data
Sub layouts routinely have 1 or more placeholders
nested sub layouts to be added.
Best Practice: Nesting Sub layouts
An example, a two-column sub layout will have 2 pl
divs with styling.
Then add other sublayouts into each of those “colu
item.Name the item’s name
item.ID the GUID (Globally Unique ID)
Helpful Code: What are some
commonly Used Item Properties
item.ParentID the GUID of the item’s parent
item.Children a Collection of type ChildList of the f
descendants
Try: item.Editing.BeginEdit() and item.Editing.EndE
Best Practices: Edit Field Values in
Catch: Editing.CancelEdit() should go in the catch
a Try/Catch Block:
Also, without the EndEdit, the new field values are
the database.