用于 HTML5 的轻量级 PHP/MySQL CMS
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6988539/
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
Lightweight PHP/MySQL CMS for HTML5
提问by nerdess
So far I've build my websites with Typo3 but it's a bit of a heavy beast for smaller sites. I've also done some projects with Drupal and Wordpress but my impression is that they mess up the HTML a lot and it is too much effort to "correct" them.
到目前为止,我已经使用 Typo3 构建了我的网站,但对于较小的网站来说,它有点像野兽。我也用 Drupal 和 Wordpress 做了一些项目,但我的印象是它们把 HTML 弄得一团糟,“纠正”它们太费力了。
I like to build some smaller websites with HTML5 now and was wondering which PHP/MySQL-based CMS could be right for that.
我现在喜欢用 HTML5 构建一些较小的网站,并且想知道哪种基于 PHP/MySQL 的 CMS 可能适合它。
采纳答案by nerdess
In the end I went with Concrete5 as it was recommended to me by various people and seems to be very well-written! http://www.concrete5.org
最后我选择了 Concrete5,因为它被很多人推荐给我,而且看起来写得很好!http://www.concrete5.org
回答by stslavik
Unfortunately, every publicly available stock CMS system will, ultimately, have the downfall of messy output. This stems from the fact that they attempt to be something for everyone, rather than a targeted product.
不幸的是,每个公开可用的股票 CMS 系统最终都会导致混乱的输出。这源于这样一个事实,即他们试图成为适合所有人的东西,而不是有针对性的产品。
Rolling your own CMS is not that big of a challenge with a little PHP knowledge. If you're familiar enough to know what you want and how you would lay it out, there are a ton of great resources for developing your own CMS, including:
拥有一点 PHP 知识,滚动您自己的 CMS 并不是什么大挑战。如果您足够熟悉,知道自己想要什么以及如何布局,那么有大量资源可用于开发您自己的 CMS,包括:
- http://www.ssdtutorials.com/premium-tutorials/series/cms-dreamweaver.html
- http://www.developphp.com/view.php?tid=322&t=Intro_How_to_Build_Custom_PHP_and_MySQL_CMS_Website_Software
- http://www.packtpub.com/cms-design-using-php-and-jquery/book
- http://www.packtpub.com/php-5-cms-framework-development-2nd-edition/book
- http://www.ssdtutorials.com/premium-tutorials/series/cms-dreamweaver.html
- http://www.developphp.com/view.php?tid=322&t=Intro_How_to_Build_Custom_PHP_and_MySQL_CMS_Website_Software
- http://www.packtpub.com/cms-design-using-php-and-jquery/book
- http://www.packtpub.com/php-5-cms-framework-development-2nd-edition/book
Essentially, a simple CMS boils down to dynamic page generation with a server-side scripting language and templating, a database to store content, and a backend for management. At it's simplest, you have one page template (your content always is output to a simple template, as in a blog or something where you rarely have different types of output), and your backend consists of a log-in to password protect a form that updates your database.
本质上,一个简单的 CMS 归结为使用服务器端脚本语言和模板、存储内容的数据库和管理后端的动态页面生成。最简单的,你有一个页面模板(你的内容总是输出到一个简单的模板,比如在博客或你很少有不同类型输出的东西中),你的后端由一个登录密码保护表单组成更新您的数据库。
To get back to the main point, however, HTML5 will only be involved in the output for client-side rendering. That is, if your template is HTML5, your site is HTML5 (for all intents and purposes, at least to your visitors).
然而,回到重点,HTML5 将只参与客户端渲染的输出。也就是说,如果您的模板是 HTML5,那么您的网站就是 HTML5(出于所有意图和目的,至少对您的访问者而言)。
回答by Michael Brusletten
You can check out glFusion at http://www.glfusion.orgwith all the features it has right out of the box. Unlike allot of other CMS's glFusion is free, including the plugins. Latest version 1.3.0 as of the time of this posting, will have html5 and also be w3c validated.
您可以在http://www.glfusion.org上查看 glFusion 及其开箱即用的所有功能。不像allot 其他CMS 的glFusion 是免费的,包括插件。截至本文发布时,最新版本 1.3.0 将具有 html5 并经过 w3c 验证。
回答by Daniel Berry
A question like this will generally get a lot of opinionated, debate type responses because every developer has different opinions and different tool sets.
像这样的问题通常会得到很多自以为是的、辩论类型的回答,因为每个开发人员都有不同的意见和不同的工具集。
For smaller projects, I prefer to use some light weight components and build it rather than using a packaged CMS.
对于较小的项目,我更喜欢使用一些轻量级组件并构建它,而不是使用打包的 CMS。
Me personally, for smaller projects:
我个人,对于较小的项目:
HTML5 Boilerplate, it gives you a great starting point, and once you have used it and are familiar you can quickly customize it to your preferences. http://html5boilerplate.com/
FlourishLib, is a great no framework library, it is quick, easy to use and the documentation is great. http://www.flourishlib.com
jQuery, is a great tool for your JS needs.
HTML5 Boilerplate,它为您提供了一个很好的起点,一旦您使用过并熟悉了它,您就可以根据自己的喜好快速自定义它。http://html5boilerplate.com/
FlourishLib是一个很棒的无框架库,它快速、易于使用并且文档很棒。http://www.flourishlib.com
jQuery是满足您 JS 需求的绝佳工具。
I spent so much time playing around with other packaged CMS that I found I could have already had the project up and out the door by the time I tweaked the CMS to get what I wanted out of it.
我花了很多时间在其他打包的 CMS 上玩,我发现当我调整 CMS 以获得我想要的东西时,我本可以将项目启动并推出。
And using this tools you can easily create your own boilerplate to get your project started quickly.
使用此工具,您可以轻松创建自己的样板,以快速启动您的项目。
Again, this is just an opinion based on my preferences.
同样,这只是基于我的喜好的意见。
回答by Jerome
If you are looking for a lightweight and fast cms build on HTML5 and CSS3 then Geckoshould be the right one for you!
如果您正在寻找基于 HTML5 和 CSS3 构建的轻量级和快速的 cms,那么 Gecko应该是您的最佳选择!
回答by Jean
Check CouchCMS - i think it is the best one for your purpose www.couchcms.com
检查 CouchCMS - 我认为它是最适合您的目的 www.couchcms.com
回答by Koleon
Perch CMS (not free but very cheap) is very lightwight, may want to take a look. http://grabaperch.com/
Perch CMS(不是免费但很便宜)很轻量级,可能想看看。 http://grabaperch.com/
回答by twoLeftFeet
I really like GetSimple CMS. I use this on a majority of small projects because it is incredibly easy to set up. It is PHP powered, and does not require an SQL Database. Instead it uses XML files to store content.
我真的很喜欢 GetSimple CMS。我在大多数小型项目中使用它,因为它非常容易设置。它由 PHP 驱动,不需要 SQL 数据库。相反,它使用 XML 文件来存储内容。
As a previous poster mentioned, HTML5 Boilerplate and jQuery provide a quick way to get set up and I often use these in conjunction with each other.
正如之前的海报所提到的,HTML5 Boilerplate 和 jQuery 提供了一种快速的设置方法,我经常将它们结合使用。