Here’s the background: I have an Artists weblog with an artists template, and an Artworks weblog with an artworks template. I have a Relationship field in the Artworks weblog so that I can tie artworks to artists. In my artists template, I display all of an individual artist’s artworks on a single page using reverse_related_entries. So far so good.
I then want viewers to click on one of the artworks and go to an artwork page that contains a detail of the artwork. This detail page must also contain the artist’s information just like in the artist page - no problem using related_entries. However, just like the artist page, this artwork template must also show the list of artworks related to the artist (not just the particular artwork whose post we are looking at). Since I don’t want to make the artists into categories instead of a weblog (categories are not flexible enough for something else I want to do with the artists list), the artist’s name is not appearing in the URL, which means I can’t use that to force certain content to be displayed (not sure I could anyway).
Ideally I would like to create a weblog tag structure that read something like this:
Display only artwork entries whose artist relationship field is equal to the entry currently being viewed. (ie If you are looking at a detail of a work related to Picasso, the weblog entry tag should display only other artworks related to Picasso.)
Any suggestions from you EE wizards out there? All help much appreciated!