Hey guys,
wondering if anyone could point me in the right direction with this. this is what i have which is overwhelming and confusing me!
the page displays 2 awards (Player of the Week and All Rookie) and each athlete can be associated with a category which is their sport.
i have an awards channel and an athletes channel.
now i also want to show just one sport at a time (will use show/hide js) so i have a list of the categories of sports.
i get all categories showing up in both awards even though there is no “hockey” in the one category.
how do i limit the visible categories to just what sports are populated for that award?
here is a screen grab of how i WANT it to work: http://d.pr/zAPT
currently ALL sports show for both awards categories lists.
my code:
{exp:channel:entries channel="awards"}
<div class="grid_12 alpha">
{related_entries id="wbasketball"}
<div class="mbasketball">
{title}
</div>
{/related_entries}
{related_entries id="mbasketball"}
<div class="wbasketball">
{title}
</div>
{/related_entries}
</div>
<div class="grid_4 omega">
<h3>{title}</h3>
<p> <ul><br />
{exp:channel:categories channel="athletes" show_empty="no"}<br />
<li><a href="#">{category_name}</a></li><br />
{/exp:channel:categories}<br />
</ul><br />
</div><br />
{/exp:channel:entries}