Jump to content

Identifying the last item in a repeated section

Recommended Posts

How do I identify the last item in a repeated section or identify the size of a repeated section?

When I say "Repeated Section", I am referring to the second item in https://developers.squarespace.com/json-t-directives

I know I have the "@index" variable, but I can't find any information on the Squarespace Developers knowledgebase as to how I can achieve my aim (i.e. to identify the last item in a repeated section / its size)

Edited by arun_sahadeo
Link to comment
  • 2 months later...
On 8/24/2021 at 1:22 AM, arun_sahadeo said:

How do I identify the last item in a repeated section or identify the size of a repeated section?

When I say "Repeated Section", I am referring to the second item in https://developers.squarespace.com/json-t-directives

I know I have the "@index" variable, but I can't find any information on the Squarespace Developers knowledgebase as to how I can achieve my aim (i.e. to identify the last item in a repeated section / its size)

Have you sold that yet

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

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.