[I have searched this forum extensively for posts about this with no luck, so apologies if this is an old topic that no one thinks about anymore.

]
I have a fairly straightforward website that has three primary categories of content--Agents, Clients, and Books. These categories all relate to one another, and there are two TVs, [[*agentName]] and [[*clientName]] that, in particular, are shared by the Book content type. Every "Book" has both of these TV fields, every Client has [[*agentName]], and every Agent has [[*agentName]] as a TV.
What I am attempting to do, but cannot (so far), is dynamically display related content on a page using this value (or some other approach).
For example, on a Client Profile page, I want to be able to dynamically display all related Books (Books in the database that have the value [[*clientName]] that match the [[*clientName]] of the current page) formatted using a particular template, which I have stored as a chunk [[$bookCard]].
Similarly, I want to display on an Agent Profile page all the Books in the database that have the value [[*agentName]] that match the [[*agentName]] of the current page), formatted using the same [[$bookCard]] chunk template.
All Client Profile pages are child pages of a parent labeled "Clients"; Book Profile pages are child pages of a parent labeled "Books"; and Agent Profile pages are child pages of a parent labeled "Agents."
This all seems simple and very logical, but I do not know how to do this. I've looked at getResources (the obvious place to look), and it doesn't work (or I don't know how to make it work this way, and I am using getResources all over the site). getRelated seems to produce just links to other content, which is not what I want--I want a visual display of related content. I considered Tags as a possible approach, but that seems like an unnecessary workaround.
Am I missing something elementary, or is this "an opportunity for someone to write a new snippet"?

I came across some documentation that suggested a snippet containing a SQL SELECT call might do the trick, but I have no experience writing snippets.
Thanks in advance for any help!
Regards,
Michael
[ed. note: etherweave last edited this post 11 years, 10 months ago.]