Sync a CMS collection from Notion
Fill a collection with the pages of a Notion database, their properties and, if you want, their content, kept up to date on a schedule or when you sync, with nothing ever written to Notion.
On this page 2 sections
Before you start
- A paid site planSee plans
A CMS collection can take its items from a Notion database: blog posts, recipes, a changelog. Each page of the database becomes an item, and its properties fill the item's fields. A page's own content can come along too, as rich text. The pages are copied from your Notion workspace into our storage in the EU when the collection syncs, so your site never loads anything from Notion when someone visits it, and nothing is ever written to Notion.
Before you start
The database is read with an internal integration of your own, which only needs to read content:
- In Notion, go to Settings, Connections, then Develop or manage integrations, and create an internal integration with read content access. Copy its secret.
- Open the database, and add the integration to its connections.
Connect the database
- Open the collection. In its toolbar, choose Sync from…, then Notion.
- In Integration secret, paste the integration's secret. It is stored encrypted.
- In Database link, paste the database's link, or its ID.
- Choose Read the properties. The database is read once, and each property gets a line with a few of its values and a suggested type. A line Page content comes last, for a database of up to 100 pages: see Map Notion properties to fields.
- Choose how often to Sync: Only when I sync, Every hour or Every day (the default). Publish new items at once is on: new items are published as they arrive. Turn it off to review new items before you publish them.
- Choose what happens When a page is deleted in Notion: Archive its item (the default), Delete its item or Keep its item.
- Choose Connect and sync. The new fields are made, and the first sync starts at once.
If the collection already holds items from an earlier source, and the new source may not have them, the dialog first says how many: “Up to 12 items synced from an earlier source will be archived if the new source doesn’t have them.” It says “deleted” for Delete its item and asks nothing for Keep its item. Choose Cancel, or Connect anyway. Nothing is removed before you choose.
Each page is known by its own ID in Notion, so a page whose properties change updates its item, even when its title changes. When a database has more than one data source, the first one is read.