cms
cms copied to clipboard
内容模板插件问题
自定义了一个内容模板:自定义数据表cms_teacher,字段Title,定义显示名称为姓名;在内容管理中添加内容页,存在 标题和姓名两个文本框;请问如何修改,让添加内容页只显示自定义的内容。 private const string Title1 = "Title"; private const string SubTitle1 = "SubTitle"; private const string ImageUrl1 = "ImageUrl"; private const string Content1 = "Content"; private const string stardata = "stardata";
public override void Startup(IService service)
{
service.AddContentModel("cms_teacher", new List<TableColumn>
{
new TableColumn
{
AttributeName = Title1,
DataType = DataType.VarChar,
DataLength = 255,
InputStyle = new InputStyle
{
InputType = InputType.Text,
DisplayName = "姓名",
IsRequired = true
}
},
Title字段是不能更改的,因为系统很多地方需要这个字段 可以在后台字段管理里面设置Title的显示名称为姓名