Jump to content

Database connection

Recommended Posts

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.

________________________________

https://www.iinsight.biz/

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

hello,

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?

regards,
Vasco

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

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment

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.