Skip to content

Instantly share code, notes, and snippets.

@kijoyin
Created May 22, 2014 07:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kijoyin/798bc9824a3f89dcc222 to your computer and use it in GitHub Desktop.
Save kijoyin/798bc9824a3f89dcc222 to your computer and use it in GitHub Desktop.
public class CustomComputedField : IComputedIndexField
{
public object ComputeFieldValue(IIndexable indexable)
{
Item item = indexable as SitecoreIndexableItem;
if (item == null)
{
return null;
}
var database = item.Database;
if (database == null)
{
return false;
}
//TODO:Implement logic to get the field value of the droplink
//FieldName+="_appendsomevalue" - if you want to use a custom index name
}
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