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. 

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

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.