For example, I know I could get the second item in a collection by typing:
{{ range first 1 (after 1 $collectionName) }}
But is there a way to just get the second item by indexing?
Thanks.
For example, I know I could get the second item in a collection by typing:
{{ range first 1 (after 1 $collectionName) }}
But is there a way to just get the second item by indexing?
Thanks.
yes, there is index
function in docs:
get 2nd item:
{{ index $collectionName 1 }}
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.