Web developers wiki ASP.NET Sitecore Sharepoint Kentico by Evident Interactive

Sitecore Rich Text output and FieldRenderer

Modified: 2013/01/21 16:01 by Vincevanm - Categorized as: Sitecore
Let's say we want to expose Sitecore Rich Text fields in a webservice. What we want is the same output as the frontend website. Therefore just using "Sitecore.Context.Item["RichTextFieldName"].Value" won't suffice because, for example, the links won't be resolved. The FieldRenderer will do the trick and is able to give the same output as on a webpage. Remember that site context etc. might have a effect on the way the field is rendered.


 © Evident Interactive BV