cms数据库设计_使用Statamic CMS构建无数据库的网站

Statamic是一种PHP构建的平面文件CMS,它提供了动态功能,允许直接在文本文件中使用Markdown编写内容。与传统数据库驱动的CMS不同,Statamic通过其控制面板提供动态内容管理,同时允许版本控制整个网站。适合中小规模网站,尤其是那些需要快速响应和灵活内容更新的项目。Statamic的安装和更新过程简单,主题化功能强大,易于定制,且有一个活跃的开发者社区提供支持。
摘要由CSDN通过智能技术生成

cms数据库设计

A content management system (CMS) is a package of code around which you build a dynamic website—with components that change, adapt and update automatically, in contrast to a hard-coded, static site.

内容管理系统(CMS)是一揽子代码,您可以围绕这些代码构建一个动态网站-与硬编码的静态网站相比,这些组件具有自动更改,适应和更新的组件。

In this article, Gareth Redfern presents a relatively new type of CMS that’s challenging the more established database-driven model.

在本文中,Gareth Redfern提出了一种相对新型的CMS,它正在挑战更成熟的数据库驱动模型。



Statamic is a flat-file CMS that has been in the wild since 2012.

Statamic是一种平面文件CMS,自2012年以来一直在流行

It's built in PHP, and cleverly combines static and dynamic functionality. While some coding skills (HTML and CSS) are required to create a Statamic site, it's very simple to work with—having its own, intuitive templating language, and not requiring any knowledge of PHP.

它内置于PHP中,巧妙地结合了静态和动态功能。 虽然创建Statamic网站需要一些编码技能(HTML和CSS),但是使用它非常简单-拥有自己的直观模板语言,不需要任何PHP知识。

All you need to get going is a code editor and an FTP program to connect with your server, and you can have your own site up and running quickly.

您只需要一个代码编辑器和一个FTP程序来连接服务器,就可以启动自己的站点并快速运行。

There's a handy 38 second video on the Statamic site that shows the CMS in action.

Statamic网站上有一个方便的38秒视频 ,显示CMS的运行情况。

Statamic is a commercial product—$29 for a personal license and $99 for a pro license. That may be off-putting people used to free options like WordPress, but benefits come with this modest price—not least prompt and direct support from the development team.

Statamic是一种商业产品,个人许可证为29美元,专业许可证为99美元。 那些习惯于免费使用诸如WordPress之类的选项的人可能会感到不满,但是这种适中的价格带来了好处-尤其是开发团队的Swift和直接支持。

Version 1 of Statamic doesn’t have a free demo, but version 2—due for beta release and built on top of Laravel—will offer this option.

Statamic的第1版没有免费的演示版,但第2版(应发布Beta版且基于Laravel构建)将提供此选项。

术语 (Terminology)

A flat-file CMS stores all your content in text files, rather than in a database—allowing you the freedom to write content directly in files using Markdown. (This is where the “static” part of the Statamic name comes from.)

平面文件 CMS将所有内容存储在文本文件中,而不是存储在数据库中,从而使您可以自由地使用Markdown在文件中写入内容。 (这是Statamic名称的“静态”部分的来源。)

Statamic is sometimes compared with static site generators such as Jekyll, which run your site through a converter that then produces HTML files for you to upload to your server. Although Statamic does have a static site generator, it requires PHP to run on your server, and is much more dynamic than the likes of Jekyll.

有时会将Statamic与静态网站生成器(例如Jekyll)进行比较 ,后者通过转换器运行您的网站,然后生成转换器供您上传到服务器HTML文件。 尽管Statamic 确实有一个静态网站生成器,但它需要PHP在您的服务器上运行,并且比Jekyll之类的更具动态性。

控制面板 (The Control Panel)

Because Statamic is dynamic, it offers a control panel for adding and editing your content—which means it's a viable CMS to hand off to clients, unlike Jekyll.

由于Statamic是动态的,因此它提供了用于添加和编辑内容的控制面板,这意味着与Jekyll不同,这是一个可行的CMS可以移交给客户。

The control panel is fully responsive, and offers a very clean, easy-to-use interface which both clients and fellow developers love.

控制面板React灵敏,并提供了客户和开发人员都喜欢的非常干净,易于使用的界面。

Statamic Control Panel

The Statamic Control Panel

Statamic控制面板

Although the control panel is available, you don't have to use it, as you can also work directly with text files and upload them as needed.

尽管控制面板可用,但您不必使用它,因为您也可以直接使用文本文件并根据需要上载它们。

版本控制您的完整网站 (Version Control Your Complete Site)

Having your whole site based on simple text files—including the content—carries the great advantage that everything can be version controlled, and even stored and edited in your favorite Git hosting service.

使整个站点都基于简单的文本文件(包括内容)具有很大的优势,即所有内容都可以进行版本控制,甚至可以在

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值