Jump to content

Database connection

Recommended Posts

  • Replies 4
  • Views 6.6k
  • Created
  • Last Reply

Top Posters In This Topic

Since Squarespace doesn't have a customizable backend, you won't be able to write code to connect to a database the way that you might traditionally do so for a web application.

If you need to read data from a database, the best option would be to expose the data via a HTTP REST API and then use Javascript's XMLHttpRequest in Squarespaces code injection to fetch the data and display it in the page.

You can see the (better) answers to a similar previous question here 


Link to comment
  • 6 months later...

Yes, it is possible. Many medical centers are now using similar databases. It works as cloud storage and is used for stocking the case management of the patients. From the beginning, I thought that this is not necessary, but I didn't think a lot about its advantages. First of all, it increases the security of the information about the patients. Only doctors with special passwords will be able to access the information in the database. Also, digital record-keeping decreases paperwork, so medical centers won lose space for storing those papers.



Edited by TimyHids
Link to comment
On 11/16/2020 at 5:48 AM, VascoD said:


is it possible to have a database connection into Squarespace site?

I'm thinking of using a standard SS template for 80% of my website but also require some custom code to connect to a database.

Is that possible?


You need to do access your database off-site, or if the data is not too complex, access the collection data in json format may good enough

View JSON Data — Squarespace Developers

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!


Link to comment
  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.