General - .NET User Groups General issues with editing, development and graphic design.
Kentico CMS for .NET User Groups > General - .NET User Groups > CustomDataHandler OnGetContent event View modes: 
User avatar
Certified Developer XbK
Certified Developer XbK
bmckeiver-bizstream - 9/25/2009 9:32:33 AM
   
CustomDataHandler OnGetContent event
Is there any documentation or FAQ on the OnGetContent event inside CustomDataHandler ? I can't seem to find any kind of example on when it's fired or how to use it really ?

Thanks
Brian

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 10/6/2009 7:34:27 AM
   
RE:CustomDataHandler OnGetContent event
Hi Brian,

this method is used by smart search. It's called every time the document is indexed. The first parameter usually contains TreeNode object and second parameter contains text that gets indexed by Lucene.NET. You can use this method to modify the text, e.g. add content from document's attachments to it etc.

Best Regards,

Martin Dobsicek