Join the Webstudio community

Updated 7 months ago

Help connecting AiTable to Webstudio CMS

At a glance
I'm trying to connect AiTable.ai to a collection to host my blog posts. I've been following the video @John Siciliano put up conencting Airtable as the front end, pretty similar set up. I got to the point in the video (about 5:40) where you have to edit the api URL. I tried to enter what John used in the editor, but it's not pulling data. I've looked at the AiTable api docs, but it's beyond anything I can comprehend. Any help is much appreciated!
Attachments
Screenshot_2024-06-14_at_7.21.18_AM.png
Screenshot_2024-06-14_at_6.59.32_AM.png
1
B
O
B
15 comments
use ticks instead of quotes
Plain Text
`${myVariable}`
Here's what my final expression looks like using AITable. That's farther along than you are now, but you can see that I had to use the SEARCH() text function with filterByFormula.
Attachment
CleanShot_2024-06-14_at_08.30.362x.png
script_title is the name of my form text input field in Webstudio.
title is my field name in AITable (where to search for what's entered in the form field)
we need a beter UI for such complex queries, so it can be distinct prop/value list instead of one big string
Here's what I use with Airtable to get the slug
Attachment
image.png
looks like you have no need for single quotes
easerier to read using template syntax:
Plain Text
`http....?whatever${variable}`
Doesn't seem to work. I've tried various things with and without the dollarsign or {}. What am I doing wrong here? Should the {⚡️ Slug} also have a $ sign?
Attachment
image.png
Plain Text
'https://api.airtable.com/v0/appk2iZaWQLO3Tqvx/tblbYRGFgCo9u2VpB?filterByFormula={⚡️ Slug}= ${system.params.slug}'
Should be backticks `` not single quotes ''
Add a reply
Sign up and join the conversation on Discord