Jump to content

Dynamic Button/Link Update with Newsletter?

Recommended Posts

Hi all, we feature our latest newsletter on our front page of our website, and we were wondering if there was a way to automatically update the button link to go to the most recent newsletter as opposed to having to go in and manually change the link to this months newsletter?

Link to comment
On 4/28/2022 at 8:21 PM, wa7245 said:

we were wondering if there was a way to automatically update the button link to go to the most recent newsletter as opposed to having to go in and manually change the link to this months newsletter?

It will depend on the newsletter format and how it is accessed. However, JavaScript could be written to update a link each time a page is loaded. For example, if the newsletter was always named "newsletter-" plus the month and year, then if today is 1st May 2022 the link could be set to "/s/newsletter-may2022.pdf".

If you provide a working link to the page, forum users can take a look. 

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

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.