doublesecretagency / craft-viewcount

View Count plugin for Craft CMS
Other
6 stars 4 forks source link

Have a way to clear view counts #2

Closed zizther closed 1 year ago

zizther commented 5 years ago

My use case is where I have been testing, it would be good to be able to easily clear all view counts. I know this can be done via the database, but it maybe a nice option to have a button and some validation before removing all entries for other users.

This could also get a bit more feature rich where it could remove entries from certain key or for a particular entry.

lindseydiloreto commented 5 years ago

That's a good idea. It would be nice to have a UI for something like that.

compass360 commented 3 years ago

I concur that this would be a nice feature. Here's a use case, from my own personal use of this plugin: We're leveraging this plugin to build a "progress tracker", tracking elements that a user has previously viewed, which is pretty powerful since we can utilize both local storage and database (for signed-in users). But giving the ability for users themselves to access something like a "clear my progress" function via a hook of some sort would be super valuable. We'd ideally use it to erase the data associated with a specific user.

lindseydiloreto commented 1 year ago

Good news! It's now possible to set or reset a counter in v1.2.0.