Skip to main content
6 votes
Accepted

How to set link field href attribute to "#"

Use Insert JavaScript option Specify Link description only (in your case 'Anchor Text') Example Field raw value <link text="Anchor Text" linktype="javascript" url="" ...
Alan Płócieniak's user avatar
5 votes
Accepted

How to exclude Standard fields when reading an item's fields

I'll say this Users don't create fields, developers create fields Issuing a Field.ReadAll is absolutely terrible for performance. Make sure you only do this in a script, never ever in runtime code. ...
Mark Cassidy's user avatar
  • 25.3k
4 votes

Help text not visible

While not immediately intuitive, this is by design. The help text follows the client language, not the item language. So if your user has his or her content editing language settings set to "...
Mark Cassidy's user avatar
  • 25.3k
3 votes

Event responsible for move field type from Shared to Versioned

It is a known Sitecore issue. (There is a description of packages, but the Unicorn issue has the same origin.) Sitecore does the movement of data from one table to another when you change field ...
Anton's user avatar
  • 3,831
2 votes
Accepted

Is it possible that two items based on the same template will not have the same fields?

No, this is not possible that two items based on the same template will not have the same fields. If you need this kind of items then you need to create two separate templates that can use a single ...
Mahendra Shekhawat's user avatar
2 votes

How to exclude Standard fields when reading an item's fields

I don't think you can skip reading all the fields that are part of the Standard Template, but you could filter them out. Example: The following will get all fields on the Standard Template and remove ...
Michael West's user avatar
  • 18.2k
2 votes

General Link with Search field is adding language code along with ID in the Item Link

This issue looks bug to me, I suggest you create a support ticket to confirm this. Alternatively, you can update the ItemBucket.utils.js file located - sitecore\shell\Applications\Buckets\scripts on ...
Mahendra Shekhawat's user avatar
2 votes

How to get Sitecore Updated Field only?

Sitecore doesn't give any option OOTB on field level. Sitecore manages the Revision field for each item that has any update, Sitecore's smart publish is based on this field. You need to compare this ...
Mahendra Shekhawat's user avatar
2 votes

How to get Sitecore Updated Field only?

Assuming that there is new version created when items are being edited, you can take the latest version and previous version and compare each field. Item originalItem = newItem.Database.GetItem(...
Marek Musielak's user avatar
  • 23.9k
2 votes
Accepted

Display filename with extension using FileField in Sitecore

Yes, it is possible. You already have MediaItem object. So I can think of 2 ways to get the filename with an extension. 1. Using MediaUrlBuilderOptions get the full URL and split it to get the ...
Sumit Helaiya's user avatar
2 votes

How to use Sitecore Multiroot Treelist

Below are the few steps which you need to do: Create a new file MultiRootTreeList.cs and add the below code. namespace Sitecore.Foundation.CustomFields.Fields { public class MultiRootTreeList : ...
Swati Gupta's user avatar
  • 3,185
2 votes

Custom token to rename Fields in Template

Sitecore tokens are used to populate field value and not field names. You should define field names before creating items from it and use sections to keep related fields together. Fields are like ...
Vikrant Punwatkar's user avatar
2 votes
Accepted

How to get all the fields & their values in Json

Your second approach is absolutely correct. There are 2 things you should be aware though: With the code you included in your question you will not get fields that have no value, or fields that have ...
Marek Musielak's user avatar
  • 23.9k
1 vote

Enable Custom Property field for SItecore General Link Field

If you will select Target value to Custom from the Target drop-down. You will be able to enter the Custom Property. Refer to this image. I hope this helps.
Sumit Bhatia's user avatar
  • 5,133
1 vote

How to add custom data attribute on Sitecore general link fields

You need to extend General Link field in Sitecore that way you can provide the ability to authors so that they can configure custom data attribute values. follow the steps to add extending general ...
Sumit Helaiya's user avatar
1 vote

How to use Sitecore Multiroot Treelist

You can also go with an existing module created by @Mikael. This module basically adds two new template field types: Treelist with Multiple Roots TreelistEx with Multiple Roots All in all, they ...
Sumit Bhatia's user avatar
  • 5,133
1 vote

How to use Sitecore Multiroot Treelist

It does not require any config changes, I think you missed the Custom Field configuration to use this newly created field. Add the Assembly and class details which extend the functionality of sitecore ...
Sumit Helaiya's user avatar
1 vote
Accepted

Regex validator on display name for hyphen(-) value

You can just join: date + only not hyphens pattern: ^(0[1-9]|[12][0-9]|3[01])[-/.](0[1-9]|1[012])[-/.]((19|20)[0-9][0-9])[^\-]+$ with only not hyphens pattern: (^[^\-]+$) using or | Final regex is:...
Marek Musielak's user avatar
  • 23.9k
1 vote
Accepted

Adding custom data source to multilist with search field not working

The article you are following is working with the Multilist field, not with the Multilist with Search. I have checked this using this class. namespace TEST.Foundation.Common.CustomSitecore { ...
Sumit Bhatia's user avatar
  • 5,133
1 vote

Field validation not working in Rendering Parameter Template for MVC form

I think you need to use a different approach to do this. I have verified this by creating the same scenario according to your question. You need to go under Validation Rules using the path /sitecore/...
Sumit Bhatia's user avatar
  • 5,133
1 vote
Accepted

General Link with Search field is adding language code along with ID in the Item Link

I created a support ticket on Sitecore for this issue. And got a response that they are able to reproduce the similar behavior locally, this behavior has been registered as a bug in their tracking ...
Sumit Bhatia's user avatar
  • 5,133
1 vote

How to remove the image attributes of a rendered image field

You can edit your query string by these ways -The hash in the query string comes from Sitecore and can be triggered with the setting "Media.RequestProtection.Enabled" (originally set in ...
Santhiya's user avatar

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