I'm creating a Custom Field Type. During the creation of the Item the user can insert some link inside of a list. I've overloaded the GetFieldValueAsHtml and GetType to make that work. In my GetFieldValueAsHtml I have this code:
public override string GetFieldValueAsHtml(object value)
{
string[] indirizzi = base.GetFieldValueAsText(value).Split(';');
StringBuilder sb = new StringBuilder();
foreach (string s in indirizzi)
{
sb.Append("<a href=\"" + s + "\"> " + s + " </a><br />");
}
return sb.ToString() + app ;
}
Now I'm interested in improving my element. I'd like to use the link to "Connect" so some SP item wich give me the Name of the file connected by link and the permissions associated. How can I do that?