Hi,
My heirachy is:
Exhibitions
-Artists
—Works
To achieve this I’ve made Artists and Works channels, with Artists a parent of Artists. I’ve then made Exhibitions a category.
I’ve applied Exhibitions categories to various Artists and Works.
I have three pages:
Exhibitions-List page.
exp:channel:categories channel="exhibitions" style="linear"}
<a href="http://{path=exhibitions/index}">{category_name}</a>
{/exp:channel:categories}Exhibitions page.
{exp:channel:entries channel="artists" sort="asc"}
<h1>{title}</h1>
{reverse_related_entries orderby="title" limit="1"}
<div><a href="http://{path=artists/C1/index}">{work_image:thumb}</a></div>
{/reverse_related_entries}
{/exp:channel:entries}And an Artists page:
{exp:channel:entries channel="artists" sort="asc"}
<h1><a href="http://{title}">{title}</a></h1>
{reverse_related_entries orderby="title"}
<div><a href="http://{work_image}">{work_image:thumb}</a>
{work_caption}</div>
{/reverse_related_entries}
{/exp:channel:entries}I have two questions:
1. For the Exhibitions page, how do I make the category within the link take it’s value from the category in the current page’s URL?
2. For the Artists page, it is correctly only displaying Artist entries that have the category showing in the URL (e.g. /artists/C1/). However the Work entries that are in the reverse_related_entries section are ignoring the category and so all Works are being shown, regardless of their category.
Thanks!