VascoD Posted November 15, 2020 Share Posted November 15, 2020 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 Link to comment
Guest Posted November 16, 2020 Share Posted November 16, 2020 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
Guest Posted June 1, 2021 Share Posted June 1, 2021 (edited) 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 June 4, 2021 by TimyHids Link to comment
Beyondspace Posted June 1, 2021 Share Posted June 1, 2021 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 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
therisejourney Posted April 13, 2023 Share Posted April 13, 2023 Did this ever come to fruition? Would love to see how it came out! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment