Questions tagged [templates]
Questions about working with Sitecore templates - base templates, data templates, field sources, ...
123
questions
0
votes
1
answer
57
views
Looking for powershell script that looks through Template files and updates them
So we have added multiple publishing DBs on our system that have an error deploying template files on deployments. I have a feeling its because the "Publishing Targets" are blank. When I ...
0
votes
1
answer
48
views
Rendering variant does not render data if template is changed
Scenario: I have a template that has shared fields, now I got the requirement to provide multilingual support in few components. I can't change the shared field because data should be shared in other ...
0
votes
1
answer
31
views
Best practice to create a template similar to existing but with different "Shared" value
I am using SXA Map component on my page and using one template "Office POI". This template have shared fields like Street, City, Pin etc. Items created on this template works perfectly on ...
1
vote
2
answers
112
views
How to specify a datasource for a droplist field in sitecore 8.0 template
I am using Sitecore 8.0 where I have created a template with field droplist field type and I want to give datasource for it where it references another template datasource. And we have Multiple Sites ...
0
votes
0
answers
42
views
Powershell script to update the template but to retain all renderings and fields
I need to change the template of multiple items in a folder but need to retain the field values and rendering and layout details. I was able to change the template and retain the field values. But how ...
0
votes
1
answer
47
views
Change the template and retain the field value (internal link to a general link)
I have a template and it is inherited. I have a field called website. I need to change the website field from internal link to a general link. When i do that, I loose all the values. How can i retain ...
1
vote
2
answers
195
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
1
answer
82
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
2
answers
138
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
1
answer
119
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
1
answer
146
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
1
answer
114
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
1
answer
71
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
1
answer
33
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
1
answer
253
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
1
answer
107
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
0
answers
38
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
0
answers
28
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 ...
3
votes
1
answer
220
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
2
answers
121
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
1
answer
1k
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
1
answer
552
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
1
answer
38
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
1
answer
194
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
1
answer
130
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
1
answer
216
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
1
answer
287
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
1
answer
168
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
2
answers
52
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
0
answers
152
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
1
answer
68
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
1
answer
185
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
1
answer
332
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
1
answer
99
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
2
answers
1k
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
1
answer
705
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
1
answer
80
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
0
answers
579
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
1
answer
300
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
0
answers
197
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
1
answer
387
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
1
answer
2k
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
1
answer
338
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
1
answer
260
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
1
answer
764
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
1
answer
60
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
1
answer
539
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
1
answer
136
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
1
answer
99
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
2
answers
1k
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 ...