craft-cp-element-count
craft-cp-element-count copied to clipboard
Count only enabled entries
Is there a way to only count enabled entries?
Use case: We have a lot of in-progress blog posts or disabled job postings which skews the at-a-glance view this plugin provides.
Currently I opted to show everything, since that's what shows up in the element list. But it's possible to show only enabled. How would you like it to work; should both the total number of entries, plus the number of enabled entries show at the same time, or should there just be a config setting where you could enable 'showOnlyEnabledElements' => true?
Good question. I think showing both might clutter up that sidebar a bit so I like your idea of just making that a config setting.
If you did want to show both, something like this could possibly work?
