Access collections based on variable #1771
Answered
by
pdehaan
danielLee0721
asked this question in
Q&A
-
Hi there, Is it possible to pass in variables to access collections? I would like to be able to dynamically loop through collections based on a front matter variable. Any help would be greatly appreciated! Thank you, |
Beta Was this translation helpful? Give feedback.
Answered by
pdehaan
May 11, 2021
Replies: 1 comment 4 replies
-
|
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
danielLee0721
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
collections['someVariable']
should work, if I remember correctly.Where are you trying to use a dynamic collection name that the syntax wasn't working?