Hi ya,
I’m using the following code to show category relations with an article:
<div class="pf-related">
<h4>U vindt meer van deze klant in</h4>
<p> <ul class="fancy"><br />
{exp:channel:entries channel="client" disable="member_data|pagination" status="open" entry_id="{embed:rel_id}"}<br />
{reverse_related_entries}<br />
{categories show="not {segment_3_category_id}"}<br />
<li><span class="icon">»</span> <a href="http://{path=portfolio}">{category_name}</a></li><br />
{/categories}<br />
{/reverse_related_entries}<br />
{/exp:channel:entries}<br />
</ul><br />
</div>What I want todo is don’t show the “pf-related” div (and its children) when there is no relational categories found.
I have tried with “if no_reverse_related_entries” and “if no_results”, but that didn’t work.
Is there a way to do this? Or should i rewrite my code?
Regards,
Robin