Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
description: Build a directory website in Webstudio using Airtable as a CMS.
▶️ Build Your Own Directory Website with Airtable
{% embed url="https://youtu.be/21y1_CiBqnM" %}
In this video, Alex guides you through creating your own directory website using Webstudio and Airtable! Whether you're a beginner or have some experience, this tutorial is designed to provide you with a clear, step-by-step process to build a functional and visually appealing directory website.
Clonable Link: https://wstd.us/template/directory
Overview
This tutorial covers building a fully automated directory in four steps:
- Project Setup: Clone the template to your Webstudio account
- Database Creation: Set up Airtable with the necessary tables
- Database Integration: Connect Webstudio to Airtable API
- Automation: Configure forms to automatically populate your database
Database Structure
Create these tables in Airtable:
Directory Items Table
| Field | Type |
|---|---|
| Name | Single line text |
| Description | Long text |
| Featured Image | Attachment |
| URL | URL |
| Pretty URL | Single line text |
Directory Submissions Table
For user-submitted resource requests.
Subscribers Table
For newsletter/email collection.
API Integration
1. Create Airtable API Token
- Go to Airtable → Profile → Developer Hub
- Create new token with scopes:
data.records:read,schema.bases:read - Grant access to your directory base
- Save the token — it won't be shown again
2. Get API URL
- In your base, click Help → API Documentation
- Copy the curl command URL for your table
3. Create Resource Variable in Webstudio
- Select your Collection's parent element
- Settings → Add Variable → Type: Resource
- Paste the API URL
- Add Header:
Authorization=Bearer YOUR_API_TOKEN
4. Bind Collection Data
- Collection data path:
airtable.data.records - Field bindings use:
collectionItem.fields.fieldname - For images:
collectionItem.fields.featured_image[0].url
Form Automation
Connect Forms to Airtable
- In Airtable Automations, create new automation
- Trigger: "When webhook received" — copy the webhook URL
- In Webstudio, select your Form → Action → paste webhook URL
- Action: "Create record" in your target table
- Map form fields to table columns
- Enable the automation
Test by publishing and submitting the form.
Related
- Airtable Integration – Detailed guide on connecting Airtable to Webstudio
- CMS – Create dynamic content-driven pages
- Collection – Display and loop through data records
- Form – Capture user submissions
- Using Filters to Dynamically Display Content – Add search and filtering to your directory