Forums / Setup & design / Filtering related_contentobject_array / Comment13481
Tristan Koen
Wednesday 10 September 2003 12:20:32 am
The problem is that I don't want to display the <div> if there are no related objects. The <div> displays as a box on the page. Thye box has a heading "Related items"
I only want to display the box (div) if there are actually any related items. The problem is that the images in my articles are considered to be related items. I can filter them out of the results using a {section show=...} or {switch}, but if there are no other relevant items, I get the "related items" box being displayed without any items in it.
That is why I would like to filter the array before I check to see if there is anything relevant.