Questions tagged [templates]

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

Filter by
Sorted by
Tagged with
0
votes
2answers
36 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,...
1
vote
1answer
36 views

I need to add SXA Page Content component to standard values of template

I created a custom template to use with the SXA Page Content component. On the standard values > presentation > details, I selected the Page Content control and I want to use a custom variant (...
1
vote
1answer
58 views

Clone SXA Carousel; Unable to change the Carousel Slide Item rendering variant

I'm working to create a clone of the Carousel Composite component. I've been able to update the Datasource and Rendering parameter templates for my use cases. However, I'm unable to change the ...
0
votes
1answer
32 views

Set the field value always to “en” language version value when setting the field from versioned field to shared field

Setting an existing field "shared" from "versioned" on the template always sets the most recent language version value for that field in the items of that template type. Is there some way to always ...
0
votes
1answer
41 views

What is the best JSS template field naming convention

What is the best practice for naming the template fields in Sitecore JSS? Layout service is not making any changes to the filed names when returning JSON response so it seems quite natural to use ...
0
votes
0answers
21 views

Media item template is getting changed [duplicate]

I am reading the media file from under the 'media library' (Sitecore 9.3) and processing the image through kraken.io/ Then I am updating the media item in Sitecore with this processed image. Code ...
0
votes
1answer
38 views

Sitecore Powershell script for moving bunch of fields to template section

We are trying to refactor few of the Sitecore templates. We need some help with powershell script. Is there any way to pull bunch of fields (around 70-80) to different template sections. Manual pull ...
0
votes
1answer
24 views

Select Template before create Promo

I have multiple promo template in template folder, may i know how to allow user to select a promo template before they create a promo in Experience editor? This is my Promo Template. But in ...
4
votes
1answer
217 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 ...
0
votes
1answer
68 views

Is it possible that two items based on the same template will not have the same fields?

I think ideally it is not possible but got confused when reading Sitecore's 9.3 learning module where this scenario is marked as true. I wanted to inform on this but before doing so thought of ...
0
votes
1answer
54 views

Multilist datasource query that filters only items where a field contains the ID of the item being edited

Here's the scenario. We have a list of FAQs and each FAQ can be assigned to one or more categories. This is done via a Multiselect in the FAQ item template. But we are now redesigning our FAQ ...
0
votes
0answers
27 views

How can a previously removed component be fully restored from standard values?

When a component coming from a template has been removed from a page item, it can be restored by resetting layouts from standard values. However, if changes are made to the component at the template ...
0
votes
0answers
23 views

Why are page components getting bumped to bottom of components list after template is deployed?

After a particular template is deployed during a release, page level components are getting bumped to the bottom of the components list on page final layout. We've pulled that template from getting ...
1
vote
2answers
465 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). ...
0
votes
1answer
53 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 "...
0
votes
0answers
22 views

Modifying base RichText field styling

Still new to Sitecore and .NET, so I apologize if this is common but haven't come across a solution yet. I am trying to modify the body of our rich text template and create a new one that doesn't have ...
0
votes
1answer
316 views

Changing the display name of field in the template does not reflect the name at item level

I had created a template in Sitecore 9.0.2 named as XYZ, and had a field in that named as "Test". Now the client wants to change the name of the field "Test" to "Test1". I changed the display name ...
-1
votes
1answer
71 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 ...
1
vote
1answer
32 views

Templatized Personalization that is configurable by content authors

I have clients who would like to put personalization on components that exist on a multitude of pages, like a side bar on thought leadership or news, to get the most visibility of the personalization. ...
11
votes
5answers
4k 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?...
1
vote
1answer
105 views

Enforce Site-Wide Alternate Text Validation On General Link Fields

I am working on Sitecore version 9.1. When attempting to insert a link using the general link field, the user is prompted to enter the following information: In an effort to enforce accessibility on ...
1
vote
1answer
72 views

How to get Sitecore template branches to use default language?

We are trying to use Sitecore template branches to create templates for different pages, i.e. "About us", "Contact", "Faq" etc. In that way, we hope to ease the job of the Sitecore editor, when they ...
1
vote
1answer
50 views

page template and his base template instance items

I have an Item in Sitecore, and I know it's derived from a certain base template. I have that base template ID, but I want to get the instance of this base template that is part of my page. I want it ...
6
votes
1answer
1k 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 ...
0
votes
0answers
73 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 ...
1
vote
1answer
122 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
91 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 ...
9
votes
0answers
4k views

Droplink source query breaks with templateid or templatename

I have a few fields in a template, and two of them have template name restrictions. Using the restriction, I get 0 results, and when removed I get all the items I want (plus others I don't) With ...
4
votes
0answers
101 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
31 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 ...
2
votes
1answer
99 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 ...
3
votes
1answer
173 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 ...
8
votes
2answers
6k views

Get all items where a certain template appears in its template inheritance

Is there a way to get all items where a certain template appears in its template inheritance? Say I want to get all items where /sitecore/Templates/Common/Sections/Search appears in that inheritance ...
5
votes
2answers
455 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 ...
2
votes
1answer
362 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 ...
0
votes
2answers
633 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 ...
1
vote
1answer
62 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
1answer
174 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 ...
1
vote
0answers
147 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
0answers
380 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
208 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.
2
votes
1answer
993 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 ...
1
vote
1answer
174 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
474 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
57 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, ...
4
votes
1answer
337 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
97 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
89 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 a ...
7
votes
3answers
559 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) ...
3
votes
1answer
56 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. ...