API Questions on Kentico API.
Version 5.x > API > Apply CMS Document Content to ASP.Net Panel View modes: 
User avatar
Member
Member
whiplash - 6/15/2012 8:57:47 AM
   
Apply CMS Document Content to ASP.Net Panel
Hi Guys

Does anyone know of a way to get the Document Content from the CMS Tree?

I want to apply the page content to an asp:Panel, I have tried using the Tree Provider and using the TreeNode to access the particular Document. I have applied the tn.DocumentContent.GetContentXml() to a string and display this through a label on the Panel. The panel has been extended using ajaxToolkit:ModalPopupExtender

It works, but it doesn't seem 100% right. It displays ']]> ' at the end of the content rendered in the panel.


Any suggestions would be great


Thanks

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 6/15/2012 6:20:33 PM
   
RE:Apply CMS Document Content to ASP.Net Panel
Hi,

Could you please check this KB article? I think it might help. It is about how to inherit content - but you can see there how to get the content of the editable region so you can re-use it as you need.

Best regards,
Juraj Ondrus