User1776 Posted July 11 Share Posted July 11 The website I am working on is displaying historical documents (such as the Declaration of Independence) for educational purposes. Each blog post displays a different document. I am trying to get all the documents in chronological order, so I am making each the date of each blog entry match the date of the document. This has been working fine, using @Beyondspace's code (https://beyondspace-showcase.squarespace.com/blog-publish-datepicker) to manually choose a blog entry date, until I notice that the earliest year on the 'datepicker' is 1900. Do you know of any way that I can choose an earlier date? (For example the Declaration of Independence date is July 4, 1776.) Is there a code I can inject into Squarespace that will give me the ability to change the date earlier than 1900? I do not have any background on coding at all and I am not finding any similar queries on any of the Squarespace forums which is making this endeavor very difficult, so any help would be much appreciated!! If you are unsure about my question but you know someone I could reach out to that might be able to help me please let me know. Or if you have any alternative ideas on how I can arrange my blog posts into chronological order that would be super helpful. Thank you so so much. Beyondspace 1 Link to comment
Beyondspace Posted July 12 Share Posted July 12 5 hours ago, User1776 said: The website I am working on is displaying historical documents (such as the Declaration of Independence) for educational purposes. Each blog post displays a different document. I am trying to get all the documents in chronological order, so I am making each the date of each blog entry match the date of the document. This has been working fine, using @Beyondspace's code (https://beyondspace-showcase.squarespace.com/blog-publish-datepicker) to manually choose a blog entry date, until I notice that the earliest year on the 'datepicker' is 1900. Do you know of any way that I can choose an earlier date? (For example the Declaration of Independence date is July 4, 1776.) Is there a code I can inject into Squarespace that will give me the ability to change the date earlier than 1900? I do not have any background on coding at all and I am not finding any similar queries on any of the Squarespace forums which is making this endeavor very difficult, so any help would be much appreciated!! If you are unsure about my question but you know someone I could reach out to that might be able to help me please let me know. Or if you have any alternative ideas on how I can arrange my blog posts into chronological order that would be super helpful. Thank you so so much. I'd look into it User1776 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight 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
Beyondspace Posted July 12 Share Posted July 12 What is your earliest date? I can try to extend the minimum date to the start of the Calendar, eg: Sat Jan 01 0000, but then some problem arise: The current Squarespace dateformat use short year format, so year 0000 will lead to 00, this may lead to misunderstand of year 2000. In this screenshot, the date is selected as 0157, but it will display as 57, make the impression of 1957 I tried with year 1000, same issue happens Another issue with the time slider: Since Squarespace is based on Unix timestamp, therefore if you select before January 1, 1970, UTC, the time slider will be disabled. But this issue can be fixed by select the current date (after 1970) - change the time slider - switch to the correct date you want Conclusion So I think you can exceed the limit of past dates before 1900, but then you need to implement a solution to display the date correctly let me know what you think User1776 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight 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
Beyondspace Posted July 12 Share Posted July 12 More thoughts, if you are looking for display a historical timeline for educational purpose, check out this free solution, it supports events storing using Google Spreadsheet https://timeline.knightlab.com/#examples User1776 1 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace (+100 Spark plugin customisations) 🥳 Freemium Squarespace Widget Templates (+1000 Elfsight 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
User1776 Posted July 25 Author Share Posted July 25 (edited) @Beyondspace On 7/11/2024 at 11:43 PM, Beyondspace said: What is your earliest date? I can try to extend the minimum date to the start of the Calendar, eg: Sat Jan 01 0000, but then some problem arise: The current Squarespace dateformat use short year format, so year 0000 will lead to 00, this may lead to misunderstand of year 2000. In this screenshot, the date is selected as 0157, but it will display as 57, make the impression of 1957 I tried with year 1000, same issue happens Another issue with the time slider: Since Squarespace is based on Unix timestamp, therefore if you select before January 1, 1970, UTC, the time slider will be disabled. But this issue can be fixed by select the current date (after 1970) - change the time slider - switch to the correct date you want Conclusion So I think you can exceed the limit of past dates before 1900, but then you need to implement a solution to display the date correctly let me know what you think @Beyondspace Ohh I see what you are saying. The earliest date is with the year 1700, do you think that would work? I don't have the dates displayed on the blog posts so maybe this wouldn't be an issue for me? Is there some sort of code I could inject to try that out on my site and I could let you know if it works? Edited July 30 by User1776 (corrected the date) Link to comment
User1776 Posted July 30 Author Share Posted July 30 On 7/11/2024 at 11:43 PM, Beyondspace said: Since Squarespace is based on Unix timestamp, therefore if you select before January 1, 1970, UTC, the time slider will be disabled. But this issue can be fixed by select the current date (after 1970) - change the time slider - switch to the correct date you want @Beyondspace Hi -- thank you so much for the help!! I'm a little confused about what you mean. I tried following the steps you laid out, but when I click through the time slider, the earliest date is still 1900. Did you change part of the code? Thanks again I really really appreciate the help!! Link to comment
User1776 Posted July 30 Author Share Posted July 30 On 7/11/2024 at 11:43 PM, Beyondspace said: I can try to extend the minimum date to the start of the Calendar, eg: Sat Jan 01 0000 How did you do this? Thanks again (& sorry for all the questions :). Beyondspace 1 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