Jump to content

Pages - "Hide Empty Categories" setting please!


chilihead

Recommended Posts

Posted

Seeing empty categories is problematic.

I want to create a jobs board with tons of categories either areas, or specialties, and I want only the full categories to show. It looks a mess with all the (0) categories, and also makes navigation very hard.

Think of those boards that list every single automobile type. Or every state and major city. This should be available when creating the record but empty cats should be hidden from view.

We will also be deleting records after 30 days so no, they will not eventually fill up. There will always be empty categories.

A simple setting would be great!

Hide empty categories
Yes/No

Thank you!

Posted

Quick solution, if you are interested: in the category listing template add around the <li> tag:

{{$count = $RecordsClass::contentCount( $category, FALSE );}}
{{if $count>0}}
<li>
    ...
</li>
{{endif}}

 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...