Access related items by index #4643
-
I know I can do this:
To walk through the related items. But now I have 4 related items with whom I want to do different things in the template. So I like to access them directly by index like so (ex.):
This does not work. Is there a way to get it to work? |
Beta Was this translation helpful? Give feedback.
Answered by
duncanmcclean
Nov 3, 2021
Replies: 1 comment 2 replies
-
Have you tried (Note, you'll need the 'antlers' both sides and it's a |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Sennik
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Have you tried
{{ related_items:0:title }}
?(Note, you'll need the 'antlers' both sides and it's a
:
between 0 andtitle
)