asp.net-mvc 在 ASP.NET MVC 中构建 CMS
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/656455/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Building a CMS in ASP.NET MVC
提问by Jonathan
I'm curious to know if any basic CMS code has been written for ASP.NET MVC.
我很想知道是否为 ASP.NET MVC 编写了任何基本的 CMS 代码。
The reason I ask is, I'm making a data-driven website for a client, and I've already spent a significant amount of time building it from the ground-up in MVC, but now the client wants content management facilities.
我问的原因是,我正在为客户制作一个数据驱动的网站,我已经花了大量时间在 MVC 中从头开始构建它,但现在客户想要内容管理设施。
Basically they want to be able to add/edit/remove articles and have revision control.
基本上,他们希望能够添加/编辑/删除文章并进行修订控制。
It would be great if I could somehow 'bolt on' the content management without having to start again from scratch, developing it underan existing CMS.
如果我能以某种方式“加强”内容管理,而不必从头开始,在现有的 CMS下进行开发,那就太好了。
Should I build the article management and revision control myself, or should I re-use some existing package?
我应该自己构建文章管理和修订控制,还是应该重新使用一些现有的包?
采纳答案by Rex M
回答by Stefan Steiger
Also, kooboo is interesting http://www.kooboo.com
另外,kooboo 很有趣http://www.kooboo.com
回答by Tim Iles
(I know this question is old, but it still comes high up for the relevant search terms.)
(我知道这个问题很老,但对于相关的搜索词来说它仍然很重要。)
Today I discovered Meek, http://www.adventuretechgroup.com/labs-meek/, and it was very simple and unobtrusive to add to my MVC project, which I believe is what the original poster would have wanted - bolting on CMS as a feature rather than having it take over your entire site.
今天我发现了 Meek,http://www.adventuretechgroup.com/labs-meek/,将其添加到我的 MVC 项目中非常简单且不引人注目,我相信这是原始海报想要的 - 将 CMS 固定为一个功能,而不是让它接管你的整个网站。
回答by Co7e
Piranha CMSis well suited to bolting on to an existing application. The author of it describes why and how here. To quote straight from that source:
Piranha CMS非常适合连接到现有应用程序。它的作者在这里描述了原因和方式。直接引用该来源:
"Our focus is content management and to have a transparent and lightweight API for developers. Piranha CMS has almost no components or helpers that render any HTML at all, it simply provides a database, a manager interface and a routing mechanism for retrieving the correct data for the current request.
“我们的重点是内容管理,并为开发人员提供透明和轻量级的 API。Piranha CMS 几乎没有任何组件或帮助程序来渲染任何 HTML,它只是提供了一个数据库、一个管理器界面和一个用于检索正确数据的路由机制对于当前请求。
In the case of you having an existing website you could actually bypass the routing completely, add one page at a time in the manager interface and then manually load the Page model in you existing page. This would allow you to keep your original application exactly the same but manage the content form the manager interface."
如果您拥有现有网站,您实际上可以完全绕过路由,在管理器界面中一次添加一个页面,然后在现有页面中手动加载页面模型。这将允许您保持原始应用程序完全相同,但从管理器界面管理内容。”
回答by Valerio Gentile
回答by Svetla Yankova
Here is also a quick summary as to how Telerik Sitefinity does it:
这里也是关于 Telerik Sitefinity 如何做到这一点的快速总结:
http://www.sitefinity.com/mvc-cms
http://www.sitefinity.com/mvc-cms
in brief - allows you to plug in standard system.web.mvc.controller classes as widgets, lets you use the API for anything including model binding, standard Razor for a view engine etc.
简而言之 - 允许您将标准 system.web.mvc.controller 类作为小部件插入,让您可以将 API 用于任何事情,包括模型绑定、视图引擎的标准 Razor 等。
回答by Yaplex
Heve a look at AtomicCms it's a free open source content management system based on ASP.NET MVC 1.0 http://atomiccms.codeplex.com
看看 AtomicCms,它是一个基于 ASP.NET MVC 1.0 的免费开源内容管理系统 http://atomiccms.codeplex.com
回答by juFo
Check for Orchard ;-) It is based on asp.net mvc.
检查果园 ;-) 它基于 asp.net mvc。

