Craft 3 Documentation
1. craft 的构成
1.1 Sections 片、章节
在craft 中使用sections来组织内容和数据。内容和数据的类型可以是:新闻、事件、和配方。
关于更多的内容类型的了解,可以参考
![](https://img.haomeiwen.com/i8014874/9695ba7955ec6f01.png)
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
网友评论