Stack Exchange Network

Stack Exchange network consists of 174 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, ...

0
votes
0answers
12 views

Sitecore 8.0 Insert not working for insert option templates, nothing happens on click

This problem just started occurring recently. In my Sitecore 8 dev environment, when I right click on an item, click Insert and select a template from the menu (these templates being the ones set in ...
3
votes
2answers
55 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
34 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
40 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
52 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
37 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
18 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
85 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
95 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. ...
0
votes
0answers
64 views

Changing the field type from Single Line Text but preserving value

Good day - we would like to replace a datafield in one of our event forms which is currently a text box (where users copy/paste in a GUID from a current/active event), and instead, use a dropdown ...
4
votes
1answer
39 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
132 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
78 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
22 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
95 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 ...
1
vote
1answer
53 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
85 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 - /...
7
votes
2answers
186 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
246 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
160 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
108 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
158 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
226 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
363 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 ...
3
votes
2answers
662 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
377 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
118 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....
5
votes
1answer
1k 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
1k 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
707 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
126 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
73 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 ...
2
votes
1answer
452 views

Inherited fields not showing up in Item

I have an item that has a template with 2 base templates, the field of one of these templates is not showing up on the item, I verified that I'm using the correct template, has this ever occurred with ...
3
votes
2answers
131 views

what is the best way to have multivalue fields in template?

I've a template name "teacher". Teacher template has following fields : - Name - Designation - DateOfJoin - Social Where social field should capture following data: - Type (FB/Twitter/Instagram) - ...
1
vote
1answer
153 views

Should we create project layer templates in a Helix solution using SXA

When creating a Helix based solution with SXA is it ok to just use the Feature and Foundation layer templates as-is for our content items, or should we be creating derived templates in our Project ...
5
votes
2answers
310 views

Templates and Rich Text Editor properties

I have a field called "description" but I want to use different Rich Text editors with it. Can I do this with the same template, or do I have to make different templates with the same field name?
8
votes
2answers
3k 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 ...
3
votes
1answer
408 views

Issue with rendering parameters after template change

Using Sitecore 8.2 Update 3 with the hot fix for the item/branch/template publishing issue. We are working on functionality for our client where when certain items are moved, the item:moving event is ...
6
votes
2answers
400 views

Field level Validation Rule => “OnSave”?

I need an 8 characters length enforcing validator. I created a MaxLength=8 and combined it with a MinLength=8 validation rule. Then I enter "1234567890123' and it's saving, no question asked! It ...
7
votes
0answers
79 views

Parameter Template Security Oddity

I experienced a weird issue and was wondering if anyone has seen this. I had to lock down Templates and Renderings to be read only for content authors so a "Publish Related Items" would not publish ...
10
votes
0answers
393 views

Retail demo ItemTemplate or SellableItem not found

I'm having trouble with the retail demo from Sitecore. It seems to be installed correctly. The products are browsable, can be added to the cart etc. However, when I try to add an item to the ...
6
votes
1answer
397 views

Multiple templates sections with same name

What will happen if there are multiple field section with same name? Its a general question, and I thought if there are multiple Field Sections, the Content Editor will get confused while changing ...
6
votes
2answers
479 views

what will happen when a field is marked as both Shared and Unversioned

If I check both shared and unversioned checkboxes in a template, what will happen? I knew difference between shared and unversioned. Want to know final result of checking both field in template.
1
vote
2answers
159 views

Sitecore Ribbon Shorcuts

I am trying to add a shortcut to Content Editor in Workbox ribbon. I can't figure out what template it will be either a panel or a button, if panel then what data type. Would be great if someone ...
0
votes
1answer
749 views

Data template for header and footer [closed]

I am quite new to sitecore and want to know if there is a way where i will just create header and footer component once and reuse them in all my pages without having to select them on individual pages....
1
vote
1answer
289 views

Accessing the 'Datasource Template' field in code

First time here. Is it possible to access the 'Datasource Template' field on a rendering? If so, how can this be achieved? I need to run a check to ensure that data sources are not removed but also ...
6
votes
1answer
378 views

Helix and field sources

In a feature for an event I have 2 templates: Speaker and Session. A session has a speaker, so in the session template we have a field to select a speaker. As project templates, I also created ...
3
votes
1answer
225 views

How to enable role selection within a template field

Is there a way to define a template field where a user can select a Sitecore role from a dropdown? I noticed that in Sitecore 8.2 under the Developer Types section there is a Sitecore User field type, ...
2
votes
3answers
2k views

Standard values on base templates

This is a question about defining standard values and base templates. Considering the following: I have a base template B with a field called Title. Is it possible to define the standard value for ...
3
votes
1answer
64 views

Why are new content items created in the content editor populated with data not in the __Standard Values of the template in Sitecore 7.2?

In Sitecore 7.2 I am having an issue in the Content Editor where when I add a new item based off of a template that has no __Standard Values the fields are being populated with data from an unknown ...