16 votes
Accepted

Adding a telephone link (href=tel:) to the general link field type

Disclaimer: This Ain't Pretty -- But It Works So after many hours of my nighttime and sleep chewing over this question, I have finally figured out the path. I will warn you, it's not easy. First let'...
Pete Navarra's user avatar
  • 14.6k
13 votes
Accepted

List of built-in Sitecore Field Types

I found an older post on Sitecore fieldtypes and the way they are rendered in a blogpost. It's not the complete list, but a starting point: http://www.mtelligent.com/home/2014/8/29/sitecore-field-...
Bas Lijten's user avatar
  • 1,857
12 votes
Accepted

Multilist With Search in Rendering Parameters is empty

This is a known bug at Sitecore. We had the same problem and created a Sitecore ticket. Please use the reference number 106439 if you contact them. This is the solution though: I was able to ...
Koen Heye's user avatar
  • 1,626
11 votes
Accepted

Set File datasource property to restrict start folder

You don't need to set in this way DataSource, you just need to set DataSource on template field to : media library path (ex: "/sitecore/media library/Images/Social/Connector") When you will open ...
Vlad Iobagiu's user avatar
  • 18.5k
10 votes
Accepted

Why Sitecore does not allow to use special characters in Name Value List field as a key?

The Name Value List (and Name Value Lookup List which also inherits from it) only allows keys containing letters and numbers due to the Validate() method in Sitecore.Shell.Applications.ContentEditor....
jammykam's user avatar
  • 13.8k
9 votes
Accepted

When to use Number vs Integer field type

The main difference is, one stores an Integer and one stores any number, e.g. 12.50. There are a couple of caveats. The decimal separator is different between countries. And Sitecore's default input ...
Mark Cassidy's user avatar
  • 25.2k
9 votes

Display field value in Drop Link field

You can do this, but you would then change the behaviour of all your DropLink fields. Switch to the "core" database and navigate to /sitecore/system/Field types/Link Types/Droplink Add FieldName=...
Mark Cassidy's user avatar
  • 25.2k
8 votes
Accepted

When is item.Fields.ReadAll() required to be run?

When you need all fields :-) For performance reasons, Sitecore will not explicitly read fields that have no value, or fields that have only Standard Value defined. The only time you will need to call ...
Mark Cassidy's user avatar
  • 25.2k
7 votes
Accepted

How to change Sitecore field value based on another field(s)

If you really need to dynamically change value of Full Name field, you can create your own ItemSave handler which will change this field for particular item templates. You can use something similar: ...
Peter Procházka's user avatar
7 votes
Accepted

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

Your understanding is not correct. It is indeed the Title field which is displayed above the Field in the Content Editor. By default, this is set to the Field’s name, but you may change the value if ...
Gatogordo's user avatar
  • 20.1k
6 votes
Accepted

Display field value in Drop Link field

1) Create a custom drop link field in the core database. In a newly created field, make control field empty. 2) Include the following code in your project and give the assembly name and class name ...
Pankaj Prasad's user avatar
6 votes
Accepted

TDS Not Deploying Template Changes

The issue is inherent with the way Sitecore handles checkbox fields and how it serializes items. Checkbox Field Checkbox fields in Sitecore can have 3 values: Blank (not set) 0 (unchecked) 1 (...
jrap's user avatar
  • 4,931
6 votes

Name Value Lookup List where Name is from data source

This is not possible out of the box, you will need to create a custom field in order to achieve this. I've previously blogged about a custom Name Value Lookup field, which allows the key portion of ...
jammykam's user avatar
  • 13.8k
6 votes
Accepted

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

The difference between $date and $now is contained within the Sitecore.Data.ReplaceValues method: protected virtual string ReplaceValues(string text, Func<string> defaultName, Func<string>...
jrap's user avatar
  • 4,931
6 votes

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

Based on @jraps research, this is what I believe is happening: $date is taking the current UTC date and storing that in the DB - if you are in UTC-4 and you create the date when the UTC date has ...
Richard Seal's user avatar
  • 20.4k
6 votes
Accepted

Manually change the updated date of an item?

The Updated Date statistic is automatically updated every time an item is changed. The only way to force the date not to be updated is programatically: item.Editing.BeginEdit(); item[Sitecore....
jammykam's user avatar
  • 13.8k
5 votes

Video url with Image type Field

I don't think you can select videos using an 'Image' field out of the box. However, I don't see why you can't use other fields instead: File: Allows users to search for files or simply browse the ...
TamerM's user avatar
  • 1,682
5 votes
Accepted

Experiencing strange behavior with Check Box Field on Sitecore 8.1

I noticed a similar problem while using Check-boxes, the values are randomly unchecked. I did a lot of QA and R&D to identify the issue or pattern, Finally, I was able to create a video where ...
Jitendra soni's user avatar
5 votes
Accepted

Customize font style for multi-line text field

The Multi-Line Text field does not read or use the Source field in any way, unlike some of the other fields. The only way to set additional custom CSS classes using this type of field is to create a ...
jammykam's user avatar
  • 13.8k
5 votes

Fieldsource query for droptree field

Yes is possible to have a query source like query:./ancestor-or-self::*[@@templatename='Site']/Data/Components/* Have a look on this link how to use sources for fields: http://sitecore.wonderamy....
Vlad Iobagiu's user avatar
  • 18.5k
4 votes

Adding a telephone link (href=tel:) to the general link field type

This is an alternative approach to supporting Tel links. I'm using sitecore 8.2 update 7 here and Glass. It isn't quite a nice for content editors and doesn't provide Experience Support but with an ...
Adam Seabridge's user avatar
4 votes
Accepted

Datetime Field in multilingual environment

From a purely technical perspective, locales and cultures have no bearing on timezones (i.e., en-US does not mean or even imply the EST time zone, or any other time zone). This is not a Sitecore ...
Justin Laster's user avatar
4 votes

Set File datasource property to restrict start folder

The "DataSource" is only for selection fields (Droplist, treelist and so on) - other field types only support a path, like Sitecore Climber writes. Further explanations are available in the Data ...
Sandbeck's user avatar
  • 283
4 votes
Accepted

How to find templates that use some specific field type?

As field types are not linked with item's ID you cannot use Link Database for that. PowerShell You could iterate through all fields in PowerShell and find those with particular field type SQL ...
Alan Płócieniak's user avatar
4 votes

Customize font style for multi-line text field

You need to include your custom css into file : \sitecore\shell\Applications\Content Manager\Default.aspx You need to add : <link href="yourrelativepathtocustom.css" rel="stylesheet"/> ...
Vlad Iobagiu's user avatar
  • 18.5k
4 votes

List of general links

I would do this using the Express SubItem module from the market place. https://marketplace.sitecore.net/Modules/Express_Subitem.aspx With this module you can create a child template with the general ...
Richard Seal's user avatar
  • 20.4k
4 votes
Accepted

Creating LinkField from XML

In theory you can extend LinkUrl class and pass the xml instead of the LinkField object like that: using System.Xml; using Sitecore.Data; using Sitecore.Xml.Xsl; namespace My.Assembly.Namespace { ...
Marek Musielak's user avatar
  • 23.8k
4 votes
Accepted

What are "Taglist" and "Tag Treelist" field types in Sitecore 9?

Both field types are coming from Sitecore Experience Accelerator (SXA). You can find their implementation in Sitecore.XA.Feature.Taxonomy.dll precisely in Sitecore.XA.Feature.Taxonomy.FieldTypes ...
Peter Procházka's user avatar
4 votes
Accepted

Different Field source for different Language

You can achieve the requirement by either implementing a custom field or a custom token. I would tend to use the custom token Custom Token Below is the code snippet you can use to implement the ...
Hishaam Namooya's user avatar
4 votes

How do you programmatically update a date field?

You don't set the field value, you set the field. newItem.Editing.BeginEdit(); string postedValue = GetValue(formSubmitContext.Fields.FirstOrDefault(f => f.Name.Equals(fieldName))); var ss = ...
Chris Auer's user avatar
  • 13.1k

Only top scored, non community-wiki answers of a minimum length are eligible