The scenario
(Dawn theme)
I’m working on an artist website where I want to display artwork and products separately, but have them link to each other when a piece or art is used for a product.
I have created the metaobject “artwork”, where each entry is a piece of art complete with a title, image, and description. This allows each piece of artwork to have it’s own page while being able to dynamically display them on a “gallery” page.
I have created the metafield “artwork” under products that references the metaobject. When I’m editing a product, this let’s me select the artwork that’s related to the product. Once I do that I can then use dynamic content to display the related artwork on the product page.
What I’m looking for
On the page of each piece of art, I’d like to be able to dynamically list any/all products that have referenced the current piece of art.
I know I can create create a metafield for the metaobject and manually reference each related product to an artwork entry, but I’m trying to avoid all that extra work. Isn’t there a way to dynamically display any/all products that have already “referenced” the current piece of art?
To clarify, let’s say I have a piece of art and a t-shirt in my store with said piece of art on it. I want people to see (and be able to click on) the original art from the product page AND be able to see any products of the art from the artwork page. Since multiple products can use the same piece or art, it’s ideal if I can just select the related piece of art from the product page, and NOT have to select all the related products from the artwork page.
Any help is much appreciated!
