Jump to content

Display Excerpt on Events Page

Recommended Posts

Hi all-

How do I display an event's "Excerpt" on its event page without having to type it in twice--once in the "Settings" and again on the individual pages?

Basically I want this excerpt info:

image.png.efb89228459406a2ee717c59c4ecaeb1.png

To display on here, the Individual Event page:

image.png.7af9799a2cb1f9e46f0251f8f379119d.png

I've tried a work around by using JavaScript to pull the OG:Description metadata, but that imposes a character limit that I would like to get rid of.

Anyone know the code to have the excerpt (or thumbnail or any of the data entered in "Settings") populate on the page itself? It seems like it should be easy since it is a built in functionality when events or blog posts are used in summary blocks, but I just can't find it anywhere.

Thanks!

 

image.png

Link to comment
  • Replies 1
  • Views 1.3k
  • Created
  • Last Reply
7 hours ago, CallicoonTheater said:

Hi all-

How do I display an event's "Excerpt" on its event page without having to type it in twice--once in the "Settings" and again on the individual pages?

Basically I want this excerpt info:

image.png.efb89228459406a2ee717c59c4ecaeb1.png

To display on here, the Individual Event page:

image.png.7af9799a2cb1f9e46f0251f8f379119d.png

I've tried a work around by using JavaScript to pull the OG:Description metadata, but that imposes a character limit that I would like to get rid of.

Anyone know the code to have the excerpt (or thumbnail or any of the data entered in "Settings") populate on the page itself? It seems like it should be easy since it is a built in functionality when events or blog posts are used in summary blocks, but I just can't find it anywhere.

Thanks!

 

image.png

You can use ajax to fetch the event content by append ?pretty-json to its url, then you can get the excerpt there

View JSON Data — Squarespace Developers

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget 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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.