增加文章模板选择

This commit is contained in:
2018-11-30 18:40:41 +08:00
parent fb0a5b80eb
commit 2cb8f6dfee
4 changed files with 91 additions and 45 deletions
+14 -5
View File
@@ -90,10 +90,14 @@ namespace COMCMS.Web.Controllers
ViewBag.cfg = cfg;
string templatesname = "";//模板名称
if (!string.IsNullOrEmpty(model.TemplateFile))
{
templatesname = model.TemplateFile.Replace(".cshtml", "").Replace(".aspx", "");
return View(model);
return View(templatesname, model);
}
else
{
return View(model);
}
}
#endregion
@@ -137,9 +141,14 @@ namespace COMCMS.Web.Controllers
}
string templatesname = "";//模板名称
if (!string.IsNullOrEmpty(kind.TemplateFile))
{
templatesname = kind.DetailTemplateFile.Replace(".cshtml", "").Replace(".aspx", "");
return View(entity);
return View(templatesname, entity);
}
else
{
return View(entity);
}
}
#endregion
}