Skip to content

Instantly share code, notes, and snippets.

@komainu85
Created February 18, 2015 20:53
Show Gist options
  • Save komainu85/ec0393b0de74059ca4d0 to your computer and use it in GitHub Desktop.
Save komainu85/ec0393b0de74059ca4d0 to your computer and use it in GitHub Desktop.
IsStandardValue Sitecore Computed Field
public class IsStandardValue : IComputedIndexField
{
public object ComputeFieldValue(IIndexable indexable)
{
Item item = indexable as SitecoreIndexableItem;
return StandardValuesManager.IsStandardValuesHolder(item);
}
public string FieldName { get; set; }
public string ReturnType { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment