13

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's discuss environment. I'm using Sitecore 8.1 - Update 3. For the most part this is a vanilla install. Second, there are two sides to Sitecore: Content Editor ...


13

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-type-overview-reference.html


12

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 reproduce the described behavior in my own environment and have registered this as a bug in the current version of Sitecore. As a workaround for the issue, please ...


11

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 you will see : One small issue that I remarked is Search tab is before Browse tab.


10

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.NameValue: if (!string.IsNullOrEmpty(input) && !Regex.IsMatch(input, "^\\w*$")) { SheerResponse.Alert(string.Format("The key \"{0}\" is invalid.\n\nA ...


9

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=Title to Parameters. If you don't want this to be the default for ALL your Droplink fields, I suggest you make a Duplicate of this field type and update your ...


7

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 validation will be based on the current locale of the Content Editor user. Which is fine if they all run Sitecore in "en", but more of a challenge if some run ...


7

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 .ReadAll is when you plan to loop through the FieldCollection - pretty much like the scenario you describe above. For reference: For the sake of ...


7

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: public class CustomItemSaveEventHandler { //master database name public static readonly string Master = "master"; //sample template id public ...


6

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 (checked) Blank and 0 are interpreted as the same value of false value when reading the fields on an item through the Item API. Serialization During serialization (...


6

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 of the following code in a newly created custom drop link field item. public class FieldDropLink : Sitecore.Shell.Applications.ContentEditor.LookupEx { ...


6

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 the list to be datasource driven and only selectable from a dropdown list. All the code is available in this Github Gist, but essentially: Create a new custom ...


6

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> defaultId, Func<string> defaultParentName, Func<string> defaultParentId) { if (text.Length == 0 || text.IndexOf('$') < 0) return text; ...


6

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 crossed over but your local date has not, then the date will appear to be stored incorrectly. This is because when Sitecore displays that date, there is no time ...


5

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 custom field. If you just want to style all Multi-Line Text fields then overriding the style is the best option, but I would suggest you create a custom ...


5

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 Media library and select the needed video Attachment: directly upload from your machine (how to use in code) Internal Link: displays the Select Link popup and ...


5

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 clearly capture the Check-boxes got unchecked. I executed similar steps to create multiple versions of an item in different languages. After continuously trying ...


5

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.com/2011/03/using-source-property.html


4

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 { public class ExtendedLinkUrl : LinkUrl { public string GetUrl(string linkFieldXml, Database database) { if (string....


4

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 definition cook book (old, but still relevant :)) https://sdn.sitecore.net/upload/sitecore6/datadefinitioncookbook-a4.pdf


4

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"/> Your css file it will include: **.scContentControlMemo { font-size:50px; font-family: "Times New Roman", Georgia, Serif; }** These class ...


4

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 link on, but instead of adding child items, you can control it all from the parent item. Then when it comes to rendering that out, you can use out of the box ...


4

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 custom token public class CustomTokenReplacer : ExpandInitialFieldValueProcessor { private const string Token = "$customtoken"; public override void ...


4

Below are the C# types of the List Type field: Checklist: Sitecore.Data.Fields.MultilistField Droplist: Sitecore.Data.Fields.ValueLookupField Grouped Droplink: Sitecore.Data.Fields.GroupedDroplinkField Grouped Droplist: Sitecore.Data.Fields.GroupedDroplistField Multilist: Sitecore.Data.Fields.MultilistField Multilist with Search: Sitecore.Data....


4

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.FieldIDs.Updated] = Sitecore.DateUtil.ToIsoDate(DateTime.MinValue); item.Editing.EndEdit(false, false); The important part is the 2 parameters passed to EndEdit: ...


3

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 bit of education I think it's acceptable if you only need limited support for this or your project doesn't allow time to implement the approach outlined by ...


3

The 'Groupped Droplink' field treats every item "returned" by its source as a separate group. Then all child items of every "group" item are selected and rendered as options for each group. That is why the above approach does not work with the 'Groupped Droplink' field The following documents on SDN provide description of the field specifics: Content API ...


3

Short answer - Sort of, but only in a specific way. Similar to fields such as Lookup, Multilist and TreeList, this field uses the fields's source property to retrieve a collection of items using the getLookupSourceItems pipeline. This pipeline allows for the source property to be interpreted in different ways for how to retrieve these items (e.g. a single ...


3

It looks like in Sitecore 8.2, you now need an "Extension" field for Sitecore to understand the attachment type properly. Add a single-line text field called "Extension" to your template, alongside the blob field. Make sure it has the same specs as the blob field (unversioned or shared). Once this field is in place, Sitecore will properly fill it out for ...


3

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 specific detail. Inside the CMS, dates are displayed and take input based on the ServerTimeZone setting. However, all dates are stored inside the database as UTC ...


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