Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search

Question

Site URL: https://draft-gbtl.squarespace.com

Hello!

I'm working on a site for a client and would love some coding help!! Does anyone know the JS in order to link Event Titles to the Event's source URL? I've searched the forum and haven't found a working solution for this. (But maybe @tuanphan might have some insight into this?)

I would like it to work on the Events page: https://draft-gbtl.squarespace.com/events-calendar, in Summary blocks that have events: https://draft-gbtl.squarespace.com/summary-block, as well as within the Calendar block: https://draft-gbtl.squarespace.com/calendar. (Basically, just anywhere that the Events title shows up, I'd like it to link to the source URL!).

Password: draft

My deepest gratitude in advance!

Share this post


Link to post

12 answers to this question

Recommended Posts

  • 0

Event title same link as Register now or?

 


You can send your question to my email to get faster answer. / How to Setup Password & Share URL 

-- I'm Tuan. I work for a non-profit project (promote the establishment of free libraries). I check the forum once or twice a day to help out the community. If you don't see me answering your question, you can send it to the email above. There are so many questions every day so I can't answer them all at once, I will try to answer them in the next few days.

Share this post


Link to post
  • 0

No, thank you. I would like only the Event Title to link to the Source URL. (The "Register Now" link is something separate which I have taken care of).

Share this post


Link to post
  • 0

and disable link for thumbnail, date,..?


You can send your question to my email to get faster answer. / How to Setup Password & Share URL 

-- I'm Tuan. I work for a non-profit project (promote the establishment of free libraries). I check the forum once or twice a day to help out the community. If you don't see me answering your question, you can send it to the email above. There are so many questions every day so I can't answer them all at once, I will try to answer them in the next few days.

Share this post


Link to post
  • 0
Posted (edited)

Ideally, the thumbnail and date would ALSO link to the SourceURL, but that is not necessary. The most important thing is the Event Title. (Thank you for your help, @tuanphan!)

Edited by evk_creates

Share this post


Link to post
  • 0

Where to find Event Source URL? Can you write an example for first event?


You can send your question to my email to get faster answer. / How to Setup Password & Share URL 

-- I'm Tuan. I work for a non-profit project (promote the establishment of free libraries). I check the forum once or twice a day to help out the community. If you don't see me answering your question, you can send it to the email above. There are so many questions every day so I can't answer them all at once, I will try to answer them in the next few days.

Share this post


Link to post
  • 0

Hello @tuanphan - The Event Source URL is added in the backend, in the Squarespace Event dialogue box (see attached image). The first event (NVC Practice Group ~ Online Class) has a source URL:  "/practice-groups".

Screenshot 2020-04-10 at 15.57.14.png

Share this post


Link to post
  • 0
Posted (edited)

Seems difficult.

I temporarily can't think of any ideas, other than manually setting links for each event with JavaScript ... but it's too manual.

Each event needs 1 JS code.. 10 events 10 code..

Edited by tuanphan

You can send your question to my email to get faster answer. / How to Setup Password & Share URL 

-- I'm Tuan. I work for a non-profit project (promote the establishment of free libraries). I check the forum once or twice a day to help out the community. If you don't see me answering your question, you can send it to the email above. There are so many questions every day so I can't answer them all at once, I will try to answer them in the next few days.

Share this post


Link to post
  • 0

I was afraid you'd say that. Squarespace has this feature enabled for blog posts (in the blog, you can add a source url and then click a checkmark that says "Post Title should link to Source URL" - see attached image). Is there a way to mimic the behavior that the checkmark enables in the blog but for events?

Screenshot 2020-04-10 at 16.04.37.png

Share this post


Link to post
  • 0

You can ask paul2009 ✌️


You can send your question to my email to get faster answer. / How to Setup Password & Share URL 

-- I'm Tuan. I work for a non-profit project (promote the establishment of free libraries). I check the forum once or twice a day to help out the community. If you don't see me answering your question, you can send it to the email above. There are so many questions every day so I can't answer them all at once, I will try to answer them in the next few days.

Share this post


Link to post
  • 0

If you wanted this for a Blog collection, you'd be in luck because Squarespace offer a checkbox to enable this. Sadly, they don't offer the same for Events. The Source URL is next to useless for Events collections. I say this because it is only available on the 'Event Item' page (where the single event is shown), not on Event List pages, in the Calendar or in Summary Blocks - all the places where you actually want it. 

I see you have added external links to Event excerpts. If these are the external links that you want to use for the titles, then a developer should be able to write some custom JavaScript to replace the title links with these instead.


sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi, I'm Paul, founder of SF Digital, a specialist company building the features that Squarespace didn't include. Explore our range of Squarespace Extensions on our website, including the Enquiry Form ExtensionDatepicker Extension and Age Verification Extension. Note that some links in my posts may be affiliate links. Book a Squarespace Expert when you need help.

Share this post


Link to post
  • 0

Hi @paul2009 - thank you very much for your response. (I had seen the Feature request post you linked to, but wondered if maybe someone had some code they knew of that worked.)

Unfortunately, the Source URL and the external link in the Event excerpt are not the same; I need the Event Titles to link to internal pages of the site, and the excerpt link to go to an external register page.

Oh well. I'll have to brainstorm some other solution.

Thank you for taking the time!

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...