How do I render a specific item from a collection? #810
|
I want to add quotes grouped per author, so I make a collection: My idea was that I would have a Is there a way to do something like |
Answered by
jaredcwhite
Sep 11, 2023
Replies: 3 comments 1 reply
|
@firedev It sounds like you might want to look into resource relations: https://www.bridgetownrb.com/docs/resources#resource-relations That way your quotes can be related to specific authors in the authors collection, and you can lookup all quotes by certain authors, etc. |
1 reply
Answer selected by
firedev
|
I came back to quotes, trying to render a specific one. Is there a way to access it by slug, not just by number? |
0 replies
|
Here is what I did |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@firedev It sounds like you might want to look into resource relations:
https://www.bridgetownrb.com/docs/resources#resource-relations
That way your quotes can be related to specific authors in the authors collection, and you can lookup all quotes by certain authors, etc.