Created
May 22, 2014 07:38
-
-
Save kijoyin/798bc9824a3f89dcc222 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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