Questions tagged [templates]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
33 views

How do I create datasource for field type Name Value List?

I feel like I'm missing something obvious - but I want to use the Name Value List field type so the user can select from a list of values. How/where do I create the dynamic values that would populate ...
2
votes
1answer
45 views

Setting subitem sorting value on Template?

Using Sitecore 9.1.1 SXA 1.8.1. I have a page type where I want its children to always be sorted in reverse. I know that I can select the page and apply the sorting that way: I was hoping I could ...
0
votes
2answers
23 views

Base Templates are deployed without any language version

We have very bizare issue with our deployment. Project contains of multiple templates and we recently (couple of months ago) introduced couple of base templates. We have prefixed them with underscore,...
0
votes
0answers
15 views

Component disappears from Allowed Renderings in Experience Editor upon changing Parameters Template for a Rendering

Just wanted to know if anyone has experienced this before or has an idea as to where things may have gone wrong Have an existing Sitecore module where updating the rendering parameters template to ...
4
votes
0answers
54 views

Is it possible to inherit insert options from multiple base templates?

I'm trying to inherit insert options from two templates. I created a template item and set both of the templates as base templates in the Data section. However, only the first base templates insert ...
0
votes
1answer
25 views

Is there a pipeline/processor or way to have dynamic Field Titles for fields shared across multiple templates?

Preamble: Sitecore supports having content editors see a customized field title, however this field title is shared across every item that inherits this item. For Image Fields I'd like to indicate ...
0
votes
0answers
17 views

Sitecore Standard Comment Template Required for Certain roles

I am trying to set up Standard Comment Template for the workflow of publishing from the Review Tab to be required for X roles. Currently I cannot even find how to make the Standard Comment Template ...
2
votes
1answer
45 views

Standard template fields not showing in inherited templates

I have created a template which inherits the standard template. Then I created an item using this template but the item not showing any fields from the standard template. Is there anything more I need ...
0
votes
0answers
19 views

Template id not getting set using glassmapper _sitecoreContext.GetCurrentItem

I have an item item1 in sitecore with redering rendering1 in its presentation details. The rendering rendering1 has its datasource and is a controller rendering. The datasource of the rendering one ...
0
votes
0answers
33 views

Patching links for a branch template used in a SXA module

During the scaffolding of a site we want to add additional items using a SXA module. These additional items have a lot of link fields in them such as general links. To avoid writing a lot of ...
3
votes
1answer
56 views

Enabling Item Language Fallback for SXA component datasources

In our Sitecore instance we have a number of different languages, and we have enabled item level language fallback. We have enabled item level fallback on all of our page templates, and this works as ...
0
votes
0answers
21 views

Bucket search based on branch template name

I am trying to add a custom bucket search type by branch template name. However due to limited documentation I am not able to find out how to do this. I have added a custom search type but it does not ...
0
votes
1answer
48 views

Is it possible to link all contents of a media folder on a page?

New to working with sitecore, and not really sure if what I'm looking into trying to do is even possible. I certainly can't figure it out myself. In short, I want a page which will list all the ...
5
votes
2answers
110 views

Sitecore populating date field with yesterday's date via $date token

I have a date field in one of my templates who's default value is $date. When I create an item using that template, the raw value is 20190522Z, but when I view it not raw I see it as yesterday's date ...
1
vote
1answer
71 views

Sorting Template Sections from inherited Base Templates

Sitecore 9.1 installation. I have a template called Person. This template has a number of Sections defined in the Template itself, and some that are inherited from Base Templates. One said Base ...
1
vote
1answer
54 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
77 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
139 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
89 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
62 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
416 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 ...
4
votes
1answer
106 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
91 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
146 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
48 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
184 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
37 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
60 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
263 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 ...
7
votes
3answers
322 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
94 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
46 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
163 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 ...
4
votes
2answers
323 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
223 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
157 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
96 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
348 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
97 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
204 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
25 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
265 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
190 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
99 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
283 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
284 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
60 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
282 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
133 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
236 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 - /...