Questions tagged [templates]

Questions about working with Sitecore templates - base templates, data templates, field sources, ...

Filter by
Sorted by
Tagged with
27
votes
4answers
5k views

How to change item templates and retain existing data

We are refactoring our project and are trying to clean up the usages of templates throughout the project. There are a number of templates that are very similar that could all be using the same data ...
10
votes
1answer
2k views

Restrict Item by Base Template on a Field IncludeTemplatesForSelection

Out of the box it is possible to restrict items in a fields data source by its base template type. I can specify a filter as follows that restricts to items of type Employee... DataSource=/sitecore/...
12
votes
5answers
5k views

What is the difference between default value of a template and it's standard value in Sitecore?

Default value is ABC, standard value $name. I only get ABC for the item added in the content tree. May be my standard values are corrupt and need to reset. But what is the difference between these 2?...
7
votes
1answer
4k views

When to use Number vs Integer field type

I can't seem to find any guidance (official or otherwise) on when to use the Number field type vs the Integer field type. What are the main differences that I should be considerate of? Sitecore 8.0
6
votes
1answer
2k views

Best way to add rendering in base template and inherit

We are 80% from the completion of the project. And noticed that we need to create a couple of renderings that must exist on all pages. I thought the best place to do this would be presentation ...
13
votes
2answers
2k views

How to remove a language version of a data template?

I created German versions of several data templates by accident. For regular items, there's an option to remove a version at tab "Versions" –> section "Versions": For templates, though, the whole "...
8
votes
2answers
490 views

Sitecore Data Exchange Framework Branch Template Issue Template is invalid

I am working on importing the data from file system provider into Sitecore using Data Exchange framework.While adding the content using regular template in sitecore, the items are imported fine.But I ...
7
votes
3answers
2k views

Override the source of a template field

If I have a template that is inheriting a field from a base template, Is there any way to override the source of that field?
7
votes
2answers
1k views

Template standard values final layout

Which purposes can be reached by using final layout in template standard values? What are advantages and disadvantages to use final layout in template standard values?
4
votes
1answer
143 views

Different Field source for different Language

Is it possible to assign different field source for the different language? For example, I have a sample template in with samplefield. samplefield has a field source as /sitecore/content/Home-en ...
3
votes
1answer
160 views

JSS Field naming convention

Will or should Sitecore automatically sanitize field names when serialising them as part of the layout service or do we need ensure we define fields in Sitecore using a consistent format? e.g. would "...
2
votes
2answers
804 views

Relative datasource for template field

I have created a branch template [Comparison Chart] which contains a folder item called [Headers] which is designed to contain items of the template [CChart Header]. Inside the [Comparison Chart] ...