Hey, I'm using the following code to reference an image in the smart search results, but I keep getting compiling errors saying that it can't find the reference in CMS.FileManager. I've referenced Using CMS.FileManager; but I'm still getting the error. Anyone got any ideas where I'm going wrong?
public static string getFileImage(object inputGUID)
{
Guid guid = CMS.GlobalHelper.ValidationHelper.GetGuid(inputGUID, Guid.Empty);
if (guid != Guid.Empty)
{
string url = CMS.FileManager.AttachmentManager.GetAttachmentUrl(guid, "picture");
return "<img alt=\"" + "alternative text" + "\" src=\"" + url + "\" border=\"0\" />";
}
return "";
}