jan-vince / smallrecords

OctoberCMS plugin to store and manage records and lists
MIT License
30 stars 11 forks source link

Component Categories only active records #21

Closed zlobec closed 6 years ago

zlobec commented 6 years ago

@jan-vince would it be possible for the Categories component to have the option to not show categories that do not have a single active record. At the same time to only count the number of active records not all records as is now (it counts also inactive records).

Regard, Darjan

jan-vince commented 6 years ago

Hi @zlobec I will add it to my todo list!

jan-vince commented 6 years ago

Hi @zlobec, this should be possible from version 2.1.2.

I was trying to create a simple UI for this but I am still not very happy with that.

The main idea behind this is:

Default Categories component partial has an example code so if you want to test it (or look at code), give it a try :)

zlobec commented 6 years ago

@jan-vince I'll give it a spin and let you know! Thanks!