Jump to content

Display Excerpt on Events Page

Recommended Posts

Posted

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

  • Replies 1
  • Views 1.4k
  • Created
  • Last Reply
Posted
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 - PDF Lightbox popup - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> No-code customisations for Squarespace

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.