I am building a curated content library for financial content.
I have 3 collections:
In the content collection (where each article will be added) I have a reference field to Author and a multi-reference field for Category (each piece of content might have multiple-categories).
I’d like to understand how I can show an author collection page (showcasing the author’s name, bio, photo etc) that shows the content items linked to him/her (this should be easy because there is a direct link between content and authors thanks to the reference field created in the content collection) as well as the categories in which the author’s content appears (there is no direct link between authors and categories, they only share a reference to content).
should i be adding refernce fields in the author and category collections also?
All of the CMS collections once created generate a Template Page where you can show the content specifically for the items of those collections. If you want to show content from an Author you need to add a collection of Content to the Author Template page and connect the reference field to the Author. The same thing works for the other collections.
These two articles can help you understand how reference and multireference fields work.
Oh ok, yes in this case you need to reference categories in your authors collection. Otherwise the system doesn’t know about the author’s categories because the only reference is in the content collection.
So in the author’s collection I add a multi-ref field that links to categories? is that it?
And when I first create the author’s entry I’m able to type in their name, bio, photo etc but I leave this multi-ref category field empty and trust the CMS to populate that over time as I add entries to the content collection?