doublesecretagency / craft-viewcount

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

FR: Methods for manipulating and resetting counts #23

Closed JeanLucEsser closed 1 year ago

JeanLucEsser commented 2 years ago

This is somehow related to both opened FR #2 and #15.

Would be nice to have a collection of methods allowing us to:

Being able to do that would allow some new scenarios, mine being as follows:

As discussed with @lindseydiloreto on discord, looks like I can do it by writing a module and querying the DB directly. I will probably try to do that for now, but still, I think those methods would greatly benefit the plugin. It stays in line with the "do one thing and do it right" mantra, which is counting, just with some added power.

Maybe even via an API. What you think?

lindseydiloreto commented 2 years ago

Brilliant, thanks for collecting these notes @JeanLucEsser! You've neatly summarized what's "missing". 🙏

I intend to give the View Count plugin a significant overhaul at some point. And when that day comes, I will be sure to include all of these feature requests. This particular Github thread will be very useful, thank you.

Unfortunately, I do not have a planned timeline. There are several other higher priorities that already have my attention in the short term, and I don't know when the next window of opportunity will be for View Count.

I'll keep this thread open until I eventually get around to tackling it. Thanks again!

lindseydiloreto commented 1 year ago

Great news! As of v1.2.0, it's now possible to...

Hope that helps, thanks again for compiling that list of related features! 👍