美文网首页
2018-07-02

2018-07-02

作者: 梵宇轩pavilion | 来源:发表于2018-10-23 16:56 被阅读0次

Craft 3 Documentation

1. craft 的构成

1.1 Sections 片、章节

在craft 中使用sections来组织内容和数据。内容和数据的类型可以是:新闻、事件、和配方。

关于更多的内容类型的了解,可以参考

1.1.1  Sections and Entries page

Entries : 条目

Entries hold the content that you want to display on your web pages. Each entry has an Author, a Post Date, an Expiration Date (if desired), a status (enabled or disabled), and of course, content.

条目支撑起你整个网站的内容。每一个条目有自己作者,提交时间,超时时间,状态,和内容本身。

您还可以创建与该条目的当前实时版本共存的条目草稿。

在你创建条目之前,你需要创建章节来包容他们。

1.1.2 Section Types

Singles

Singles are used for one-off pages that have unique content requirements, such as:

●the homepage

●an About Us page

●a Contact Us page

Channels

Channels are used for streams of similar content, such as:  频道,用于内容相同的流

●a Blog

●a News section

●recipes

Structures

Structures are good for times when you need to store multiple similar entries, and sort them into a specific order. They can also be hierarchical. Examples include:

●Documentation

●a Services section, where the order of services matters

●a company organization chart

相关文章

网友评论

      本文标题:2018-07-02

      本文链接:https://www.haomeiwen.com/subject/mtyluftx.html