Questions tagged [templates]

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

Filter by
Sorted by
Tagged with
1
vote
2answers
52 views

Site specific source for droptree field type

I have an sxa multisite solution where a template has been used across 2 sites. The template has a droptree field with source in template as /sitecore/content/tenant/site1/data/tag. However, when I ...
1
vote
1answer
73 views

Checkbox showing on Bizfx but not in Sitecore

I am able to see Checkbox on Bizfx but when I do the Update Data Templates in Sitecore then its showing Single-Line Text rather than a Checkbox This is the code to add a property. I have declared it ...
1
vote
2answers
82 views

Command template not available on the home item's insert options

I have created a command template and I want to create an item using that command template under the home item. I have assigned that command template on the insert options of the home item's template ...
0
votes
1answer
46 views

Programmatically get source of a Template Field

I have field in Template like Multilist with Search and Treelist with search. In these fields in the source a start search location is specified as below: I need to find out all templates ...
1
vote
1answer
76 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 (...
0
votes
1answer
68 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
49 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
27 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 ...
1
vote
1answer
164 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
82 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 ...
1
vote
0answers
29 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 ...
1
vote
0answers
24 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 ...
2
votes
1answer
129 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 "...
1
vote
2answers
70 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 ...
2
votes
1answer
651 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
vote
1answer
335 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 ...
1
vote
1answer
36 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. ...
1
vote
1answer
151 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
105 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
129 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 ...
1
vote
1answer
231 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
123 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 ...
1
vote
2answers
46 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,...
4
votes
0answers
128 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
40 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
136 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
267 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 ...
-1
votes
1answer
89 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
705 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 ...
3
votes
1answer
522 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
70 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
531 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
240 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
174 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
284 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
1k 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
284 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
213 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
613 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
58 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
430 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
117 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
93 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 ...
0
votes
2answers
881 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
616 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) ...
4
votes
2answers
87 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
501 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
933 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
408 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 ...