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. 

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

Would you like your customers to be able to mark their favourite products in your Squarespace store?

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.