Kentico文章aspx模板

Kentico article aspx template

我必须将一个站点从 Ektron CMS 移动到 Kentico。 我现在正在尝试移动文章模板。 我想我在阅读文档时错过了一些明显的细节。 Ektron aspx模板中有部分代码:

<%= PressReleaseContentData.Html%>

我认为这段代码是负责显示页面内容的。我怎样才能在 Kentico 做同样的事情?

我不确定 <%= PressReleaseContentData.Html%> 在 Ectron 中执行,但您应该检查 transformation methods in Kentico。您可能正在寻找 一些 EvalEditableItems 方法。

可能是我的描述不正确,不过我已经找到了适合我的答案。我使用以下代码从 TreeNode 获取它:

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

ArticleText 是包含内容的栏目名称。