I would like to see adding "hits" field in the site_content table to keep track of the hit stat of the content
I also would like to suggest adding a new table call "site_content_rating" with the following fields: id, rating_sum, rating_count, lastip to keep track of the rating of the content.
What do you think?
Thanks
-
MODX Staff
- 12,272 Posts
Sounds like a good use for a module/plugin. Doesn’t seem that it’s a critical feature for every site. Although I could certainly be pursuaded otherwise.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
Ryan,
I agree with you that it can be either of those.
I just proposing to have it in the database structure so that a plugin/module have a place to do manipulation of those info.
Thanks
-
MODX Staff
- 12,272 Posts
I don’t see any reason not to do so. However, theoretically we’ll have something that will handle that more transparently (adding/working with non-default tables) in the future.
No reason that adding the tables to your database manually should be a problem with upgrades though.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
-
☆ A M B ☆
- 24,524 Posts
if everyone used the same format for bundling their modules/plugins/snippets with all dependant files including a .sql file, we could easily enough have an installation program for these. Developers would just bundle the install.php file with their other files, the user would upload the package and run the installer. Eventually this whole process can be automated from the backend.