Skip to content

Commit c7d0dbb

Browse files
committed
Add walkthrough video
1 parent 406fba2 commit c7d0dbb

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
Run it with `npm install` and `npm run dev-server`.
44

5+
[Watch the solution walkthrough here](https://www.youtube.com/watch?v=pA_lq7eeGlg)
6+
57
## How it works
68

79
### Creating a data type
@@ -11,20 +13,20 @@ Much like the Hackathon, the Editor creates a new post type and define the field
1113
The "fields" in this prototype are limited to the content areas.
1214

1315
When you select a Group block, a new inspector control ("Content area") is added to the sidebar,
14-
where you can bind the contents to a specific part of the post object.
16+
where you can bind the contents to a specific part of the post object:
1517

1618
- `post_content` binds to the `post_content` attribute.
1719
- Any other value binds to the post meta fields.
1820

1921
### Entering data
2022

21-
The data type template and displayed in the Editor. User enters content in the group blocks that were added.
23+
The data type template is displayed in the Editor. User enters content in the content area blocks that were added.
2224

23-
Upon clicking "Save", the back-end will intercept the post, extract the bound Group's contents and
24-
route them to the appropriate places.
25+
Upon clicking "Save", the back-end will intercept the post, extract the blocks from the content areas and
26+
save them to the appropriate places (e.g., `post_content` and post meta fields.)
2527

2628
### Displaying data
2729

2830
The `post_content` is not intercepted, and the stored content is displayed.
2931

30-
The plugin creates a block variation for each post meta field, and also exposes a block that renders the data type template.
32+
The plugin creates a block variation for each post meta field, and also exposes a block that renders the data type template from the current Query Loop context.

0 commit comments

Comments
 (0)