Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted May 31, 201510 yr 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 categoriesYes/NoThank you!
May 31, 201510 yr Community Expert 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}}
May 31, 201510 yr Author Thanks for that! It will be useful when I finally go live. Still hoping it is added.
Archived
This topic is now archived and is closed to further replies.