Apostrophe Tutorials | Pages: Schemas and Templates

Описание к видео Apostrophe Tutorials | Pages: Schemas and Templates

UPDATE: We'd love your feedback on our tutorial video series! Click the link below to fill out our 1 minute survey via Google Forms. Responses are confidential and go a long way towards helping us continue to produce more relevant, useful content for our community. Thank you! https://forms.gle/LyMbys7hnHKVreRo6

In an Apostrophe project, pages provide a way to show static content, as well as dynamic content delivered by both widgets and pieces. The @apostrophecms/page-type module allows for the creation of page types. The selection of these page types by a user tells Apostrophe what template to use to render the page, what content types can be added to a page by the editor through the field schema, as well as what additional dynamic content should be added. You can have as many or as few page types as needed for your site.

While the focus of this tutorial is demonstrating how to add pages to your project, we will also be diving a little deeper into some key concepts. These concepts apply universally in Apostrophe projects. As a result, this tutorial won't be code-heavy but is crucial in fully understanding how to develop with Apostrophe.

You can follow along with this tutorial by editing the code of your own project, or by switching to the 'sec2-2-pages' branch of the project GitHub repository: https://github.com/apostrophecms/apos...

This tutorial, plus many more, is available in text format on our Documentation site here:
https://docs.apostrophecms.org/tutori...

Follow Apostrophe
Website: https://apostrophecms.com
Discord: https://chat.apostrophecms.com
X/Twitter:   / apostrophecms  
LinkedIn:   / apostrophecms  
GitHub: https://github.com/apostrophecms

Timestamps
0:00 - Introduction
0:39 - Getting Started
1:23 - Add a New Page
3:09 - Field Schema Review
13:20 - Template Features
16:02 - Creating a Template
19:37 - Summary

Комментарии

Информация по комментариям в разработке