Managing content
Notion organises content into pages and pages are collected into databases. In Getting started we learned that MotionLink requires that your database have a Status property of select type. The property can be set to any value, and that changing it to Published, Completed, or Public will trigger a publish event. This article details how you can safely publish, unpublish, update, and remove content from your database.
Publishing Content
- Create a new page add your content, and set its status to
Published,Completed, orPublic.
Unpublishing content
Change page status to anything but
Published,Completed, orPublic.Remove the last letter of the database name and add it back quickly. This will cause MotionLink to trigger a publish event.
MotionLink only triggers a publish event if the status of a page is changed to Published, Completed, or Public, (or if the content of a page with any of these status values is modified) but not the other way around. Slightly changing the name of the database forces it to trigger a publish event (i.e tag your repo). If the motionlink.config.js file in the repo filters out unpublished content, which it should, then the page will be unpublished. Otherwise it will still be published.
Updating Published Content
Change the page status to anything but
Published,Completed, orPublic.Make your changes.
Change the page status back to
Published,Completed, orPublic.
Removing Content
To delete a published page, first unpublish it as detailed above. Then delete or archive the page in Notion.