Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [templates]

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

1
vote
1answer
49 views

What is the most basic kind of item/template that can exist in Sitecore?

I have a need to store simple string values in the Sitecore content tree. I am thinking i'd like to create the most basic kind of Sitecore item with the least amount of fields. But, if I select [...
1
vote
0answers
43 views

What is the importance of setting up icons on templates [closed]

I was looking up what the competencies are for Sitecore 9.1 examination and stumbled upon this blog where one of the stated competencies under Templates is as followed: State the importance of ...
2
votes
1answer
120 views

Inherit child template to the parent template using Powershell

I have 2 templates: Template A: PersonalTemplate Template B: PrivateTemplate Here I want to inherit Template B in Template A using the PowerShell script.
1
vote
0answers
50 views

MultiList with Search not showing items for non-admins

There is a related item that suggests providing read access to /sitecore/system/Settings/Buckets/Item Buckets Settings, which I've done. That at least removes the loading icon from the left shuttle ...
1
vote
1answer
51 views

How to bulk-create template items automatically?

In Sitecore project, how would you bulk-create template items? What we usually do is to write internal-design document, which defines Item Name, Item Path, Section Name, and Field Name in Excel ...
2
votes
1answer
82 views

Any way to filter a treelist with just the source property of the template field?

I have a treelist that I'm pointing at a folder for items, which works fine, but when I attach some kind of filtering clause, like /*[@@tid='{ID}'] it just defaults to the root of the sitecore content ...
3
votes
1answer
60 views

Multiple queries for a droplink - removing duplicates

So, I have multiple organizations content on my site, they are all grouped into a regional content area, and I also have a global content area. One of my templates looks into a folder that has a ...
1
vote
1answer
28 views

Right Click on media library folder does not offer Upload File option

I have a user that has create permissions for certain folders in the media library, but when I log in as that user and right-click on the folder, all I see is the create folder option. If I click on ...
1
vote
1answer
47 views

Default value “choose…” for droplist

This is what I'm looking for: I have a droplist item that is looking in a particular folder for values to include. However, I would like to specify a default of "Choose..." Is it possible to do ...
1
vote
1answer
44 views

How do I create a template that contains proprietary components? [closed]

I need some advice about creating a template. I need to create a template with all the components on the page, each component has to be unique and not related to another copy (asides from header, ...
3
votes
1answer
100 views

How to make a empty field behave like a null field value when it comes to standard values?

By default, standard values are only applied to a template field if its value is null. I heard during the Sitecore Developer Foundation training that we can configure it so that an empty field would ...
1
vote
1answer
29 views

Is it possible to create sub-sections within your field sections?

Is there a way to create sections within your field sections? - Field Section - Field For example I would like the following template setup to be like this: - Header - Header Title - ...
0
votes
1answer
33 views

Rendering cloning | item fields are not as per their template

Environment: Sitecore 9.0.2 + SXA 1.7.1 What I am doing: The field labels of the inbuilt templates and renderings provided by SXA were not compatible with my requirement. So, I started with creating ...
0
votes
2answers
116 views

Checking for a checkbox rendering parameter value in view

I have a view that works fine to display rendering parameters for a title and body of a widget, however, I've added a checkbox field to the rendering items for that template and when I try to use it ...
8
votes
3answers
243 views

Is it okay to add fields to Standard Template or add Base Templates to it?

I would like to add a field to all of my templates. The easiest approach appears to be to either Add the field directly to Standard Templates (/sitecore/templates/System/Templates/Standard template) ...
0
votes
0answers
47 views

xpath query as souce for image or file field

I continue to get a Value Cannot Be Null error when clicking on Open File or Browse for a File/Image field I'm trying to point to a specific folder. Here's the problem. The folder is in a part of ...
3
votes
1answer
42 views

Can you prepopulate an image field with an existing image?

It seems like you can do this via the Default Value item in the field properties but when I add the path to the image I want, and then create an item with that template, it doesn't show that image. ...
0
votes
0answers
70 views

Not seeing insert options for user

I'm trying to set up a new set of users with roles. I have them members of a couple of different roles that inherit from sitecore roles, including Author, Designer, Sitecore Client Designer and ...
3
votes
2answers
183 views

How to edit the insert options for existing content using that template?

I'm VERY new to Sitecore so forgive me, if this question doesn't make any sense. I've added an insert option to the __StandardValues of a template. I expect the content using this template to have ...
6
votes
2answers
166 views

Data loss after changing template fields to shared

I am facing data loss in our Testing server after making some template fields Shared. However, in my development machine, I still have all the values for those Shared fields which I have lost in the ...
3
votes
2answers
88 views

Template inheritance - how to resolve duplicate usage

Some time ago my team and I decided to break out some often-used fields into components that can be inherited, a Heading field being one of them. We put the Heading field into it's own template and ...
0
votes
1answer
64 views

Sitecore Template fields based on another template

I am creating a template in Sitecore 9 with following fields. Title - single line text field Description - multi line field Now, I want to add 2 image fields but their type is not Image, they are ...
2
votes
2answers
226 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] ...
4
votes
1answer
87 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 ...
4
votes
1answer
140 views

How to setup child templates by default

I'm trying to see if I can setup child templates, on a given parent template, that would show up every time the parent template is used to create an item. I tried adding the child templates to the ...
2
votes
1answer
21 views

Inheriting bucketable template

The plan is my bucket to have different templates that need to be bucketable let's say 10 templates, Can I just create a 1 bucketable template and inherit it for the other 10 templates so they can be ...
1
vote
1answer
209 views

How to show template name in rendering variant?

I have a template and i want to show the template name in the rendering variant. I have tried to add a "field" type to the variant, and set its name to "template", but that didn't work. I have tried ...
1
vote
2answers
157 views

Multiple fields with the same name in Habitat

In Habitat, I defined two templates: _idenity and _footer, and each of them has the same field name but different ID values,for example IDA and IDB. The start root item inherits both these templates. ...
4
votes
1answer
78 views

Reversed Insert Options

Has anyone implemented a feature like Reversed Insert Options? Meaning a template should know where it should be added as an Insert Option rather than what it can add?
4
votes
1answer
225 views

Can I modify Standard Values variables, such as $name, to be all lowercase?

The use-case for this situation is that I want to use the $name of the item to populate a text field for CSS class. Example: bg-$name Since this is for a CSS class, I want it to be lowercase, but ...
0
votes
1answer
197 views

sc_site on template standard values [duplicate]

When opening the experience editor on the standard values of a template, the sc_site=website parameter is passed in the URL. In my multisite setup I have different sites specified. The codebase takes ...
0
votes
0answers
35 views

Sitecore Control to select inherited field?

Using Sitecore 9.0.1, I need to select a field but this field may be inherited from a base template. ie. I wont the content author to be able to select a field name using a suitable control and this ...
0
votes
1answer
208 views

Create sitecore template field with specific condition

one specific requirement in which content editor needs to choose properties by state. I have properties with states field. Now I am planning to create the user-defined template for a content editor to ...
2
votes
1answer
102 views

Removing templates from JSS

I would like to use the advance Angular JSS project as an starting point for a code first approach but I would like to know if it is possible to remove all components that came with that Angular ...
1
vote
1answer
176 views

How to change template for multiple items

There are many PDF files in our project that are manually added to the media library. I see that some of them have the template - /sitecore/templates/System/Media/Versioned/Pdf and some others - /...
8
votes
2answers
277 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 ...
0
votes
1answer
519 views

Reset presentation detail is using Standard values from wrong / old template

I'm trying to migrate a Sitecore page to use a new template with new presentation details in it's Standard values. This template inherits from the currently used template. When I change the page to ...
1
vote
1answer
271 views

Merge field of parent template into same section of inherited template

I would like to know if there is any way to merge the field of a parent template into the child template's existing section. Here is the scenration Template A has a field under Main Section(FieldA). ...
2
votes
0answers
178 views

What possible reasons could there be for a checkbox on an item becoming unchecked in the web DB?

We have a specific component that includes a checkbox. There are multiple items of this component. The checkbox on these items becomes sporadically unchecked in the web DB, without the items having ...
3
votes
1answer
245 views

Replace or Update Base Template of a Template

I am trying to remove a base template if found and add a different base template if not found. In the code below the standard template is never found even though I know its there. Is it because I'm ...
3
votes
2answers
393 views

'$name' able to set default value for already existing related page Item

Scenario: I have a template (say A), and having 50 page items already exist related to template type A. Objective: Now have a requirement to add one more field for template A with default value '$...
1
vote
1answer
555 views

Parameter value for the rendering present in the standard value of the template

I want to give a token $name in the parameter value of a rendering which is present in the standard value of a template so that when I create new item of this template, the item should have the ...
4
votes
2answers
1k views

Deleting an Item with a null Template

Thru a series of unfortunate events (most likely missing a template in a package between servers/instances) I found myself having issues inserting links thru the General Link field. Tracked it down ...
1
vote
1answer
614 views

Mapping an interface template to a concrete class template in Code?

I have a Droplink type field called Formatter on a Table Column item. I would like GlassMapper to automatically map the selected value in the DropLink to the concrete class. Is this possible? using ...
3
votes
1answer
146 views

Sitecore Solution Documentation Generation - any tools?

Having had to deliver/create documentation on numerous projects now, I know it is the last thing that anyone wants to do manually in Word. I happened to see this tool mentioned: https://zkniebel....
6
votes
1answer
2k 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
9
votes
3answers
2k 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 content tree. May be my standard values are corrupt and need to reset. But what is the difference between these 2?...
1
vote
1answer
1k views

Sitecore field with standard values not reflecting on item

This is so weird.. I have an existing template and i created a new field with checkbox property. i set it "Shared" and seletected the default value as "Selected" The weird thing is when i go to my ...
1
vote
1answer
189 views

How to refactor duplicated fields?

On an existing multi-site instance, it's been noted that there are several templates that duplicate fields by name. For example, each site has a set of templates that are used as the base for each ...
2
votes
0answers
81 views

Saving presentation details kills browser

I'm having issue with saving presentation details on standard values for a template. I navigate to the template and standard values I'd like to edit in content editor, I open presentation details ...