2
任何有N2 CMS的家庭?N2 CMS - 我的物品不显示在树上
我刚开始使用它,到目前为止这么好,但我有一个问题,我敢肯定,你们会知道什么是错的。
我有这个简单的项目类...
using N2;
using N2.Details;
using MVCSite.ContentCMSItems;
[PageDefinition("Home page", Description = "The Page for the home page")]
[WithEditableName]
public class PageItem : AbstractBaseClass
{
/// <summary>
/// There are code snippets to help generate these properties.
/// Look in the snippets directory of the package.
/// </summary>
[EditableFreeTextArea("MainText", 97)]
public virtual string MainText
{
get { return (string)GetDetail("MainText"); }
set { SetDetail("MainText", value); }
}
[EditableFreeTextArea("Home Page Fotter Text", 100)]
public virtual string FooterText
{
get { return (string)GetDetail("Home Page Fotter Text"); }
set { SetDetail("Home Page Fotter Text", value); }
}
}
在编辑模式下,N2 CMS拾起,我可以创建一个页面,并在所有的数据填写。
完成此操作后,我希望在树的起始页下方看到它,但它从不显示。
所有数据在数据库中而不是在树中,所以一旦它的创建,我不能编辑它:(
任何人都可以提出什么即时做错了什么?
感谢您的时间
Truegilly
第三条使用语句 - 出于示例代码的目的,我可能已经改变了我自己! – harriyott 2010-07-15 11:08:45