Search code examples
c#asp.netcontent-management-systemkentico

Kentico article aspx template


I have to move one site from Ektron CMS to Kentico. I'm trying to move templates for articles now. I think I missed some obvious detail when I'd been reading documentation. There is a part of code in Ektron aspx template:

<%= PressReleaseContentData.Html%>

I think this code is in charge of showing the content of the page. How I can do the same thing in Kentico?


Solution

  • May be my description is not correct, but I've found the answer for me. I'm getting it from TreeNode with this code:

    <%= CMS.DocumentEngine.DocumentContext.CurrentDocument.GetValue("ArticleText") %>
    

    ArticleText is a name of column with content.