Forum OpenACS Development: View counting using views package

Collapse
Posted by Malte Sussdorff on
I am wondering about the general approach to enable view tracking using the views package.

So far I have seen "if {[apm_package_installed_p "views"]}" calls in file-storage/www/download.vuh.

Is this the suggested approach? How are people including information and code from other packages in general?

I need to track the number how often a file was downloaded and display this in the folder overview (file-storage/www/folder-chunk.tcl), but same goes for forum postings (how often has a forum posting been viewed). How is it done there (if at all) ?

I would probably go the extra mile by adding a callback, though maybe there are other better approaches to this general problem.

Collapse
Posted by Dave Bauer on
I am not sure callbacks are the best solution for this type of thing. All I know is there isn't a clear answer in the toolkit on how to do with cleanly.