Content management system N2 CMS-我的项目不会显示在树中

Content management system N2 CMS-我的项目不会显示在树中,content-management-system,n2,Content Management System,N2,有人熟悉N2 CMS吗 我刚开始使用它,到目前为止还不错,但我有一个问题,我相信你们会知道哪里出了问题 我有一个简单的项目类 using N2; using N2.Details; using MVCSite.ContentCMSItems; [PageDefinition("Home page", Description = "The Page for the home page")] [WithEditableName] public class PageItem : AbstractBa

有人熟悉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;
使用N2。详细信息;
使用MVCSite.ContentCMSItems;
[PageDefinition(“主页”,Description=“主页的页面”)]
[WithEditableName]
公共类PageItem:AbstractBaseClass
{
/// 
///有一些代码片段可以帮助生成这些属性。
///查看包的snippets目录。
/// 
[EditableFreeTextArea(“MainText”,97)]
公共虚拟字符串MainText
{
获取{return(string)GetDetail(“MainText”);}
set{SetDetail(“MainText”,value);}
}
[EditableFreeTextArea(“主页文本”,100)]
公共虚拟字符串文本
{
获取{return(string)GetDetail(“主页文本”);}
设置{SetDetail(“主页格式文本”,值);}
}
}
在编辑模式下,N2 CMS会选择它,我可以创建一个页面并填写所有数据

一旦这样做了,我希望看到它在树上,在我的首页下面,但它从来没有显示

所有数据都在数据库中,但不在树中,因此一旦创建数据,我就无法对其进行编辑:(

有人能告诉我我做错了什么吗

谢谢你的时间


Truegilly

发现了问题,因为我从N2CMS MVC示例项目复制了它继承的AbstractBaseClass,它包含导致此问题的方法。删除这些方法后,它现在显示在树中


Truegilly

第三个using语句-为了示例代码的目的,我自己可能已经改变了!