Synced and live data
Fill a collection from a spreadsheet, Airtable, a feed or any API, copied on a schedule or fetched fresh as pages load.
A collection doesn't have to be typed in by hand. If you already keep the list somewhere else, like a Google Sheet of class times or an Airtable base of products, point the collection at it and your site keeps up by itself. Sections that show the collection don't change. Only where the entries come from does.
Synced and live data is on Site Pro and the agency plans.
Manual, synced or live
Every collection has a Source, in one of three modes:
| Mode | What happens | Good for |
|---|---|---|
| Manual | You add and edit entries here. This is how every collection starts. | Lists you keep in Unvop |
| Synced | Entries are copied from a connection on a schedule. The source is the truth, so entries are read-only here. | Lists that change a few times a day or less, like a menu in a sheet |
| Live | Entries are fetched while a page is drawn and reused for a few minutes. Nothing is stored here. | Lists that change often, like stock or a news feed |
Visitors get a normal, fast page either way.
Fill a collection from a connection
You need a connection first. See Connections. You can also make one on the way, from the Connection menu.
- Open the collection and choose the Source tab.
- Under Where entries come from, choose Synced or Live.
- Pick the Connection. Choose New connection… to add one without leaving the page.
- For an API, add a Path if the list lives at a particular address, like
/items?status=active. It's added to the connection's address. - Press Preview. You'll see how many items were found and where.
- If the answer holds more than one list, press the one that holds your items. Lists that could are marked.
- Under Fill each field from, check which part of each item fills each field. Most are matched by name for you; the grey text shows the first item's value. Choose Leave empty for a field the source doesn't have. The name field always needs something to fill it.
- For Entry address, choose a value that never changes, like an id, if the source has one. Otherwise it's made From the name.
- Choose how fresh it should be (see below).
- Press Save and sync (for synced) or Save source (for live).
Choose how fresh it is
- For Synced, choose How often: Every 15 min, Hourly or Daily.
- For Live, choose Reuse a fetched list for, between 1 and 60 minutes. Shorter is fresher; longer is faster and kinder to the source.
Sync now
When you've changed the source and don't want to wait:
- Open the collection's Source tab.
- Press Sync now.
Beside it you'll see when it last synced and how many entries came in. If the last sync didn't work, it says why, like a key that's missing or an address that moved.
Edit synced or live entries
You can't edit them in Unvop. Change them in the sheet, base or service they come from. A synced entry arrives with the next sync; a live one shows once the reused list runs out.
You can still show them on any page, filter them, sort them and give them entry pages, just like manual entries.
Go back to manual
- Open the collection's Source tab.
- Choose Manual and press Save source.
Entries are edited in Unvop again. After a live period, the entries stored before it come back. After a sync, the last synced entries stay and become yours to edit.
Related
- Connections
- Collections
- Data API
- Developer guide: Collections