Hi there, some users would like to have access statistics about each DTML-Document without creating a new FSCounter or ZCounter for each new document. Is that possible? Thank you Marcus
Hi Marcus, you can analyze the logfiles, either Z2.log or if you 're running apache (mod_proxy) or squid in front of the setup, you can analyze their logs. Regards Tino PS: beware of the counters! :) In any case, logfile or counter - you dont really know how often a document is accessed since there are numerous places where documents are cached. --On Donnerstag, 26. April 2001 09:21 +0200 Marcus Schopen <marcus.schopen@uni-bielefeld.de> wrote:
Hi there,
some users would like to have access statistics about each DTML-Document without creating a new FSCounter or ZCounter for each new document.
Is that possible?
Thank you Marcus
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Hi, Marcus Here's a possible answer: You could put together a database-backed counter method with the DTML Documents' absolute_url()s as a key. The method would be optionally called from the DTML Documents as <dtml-var doc_counter> or something like that. It would be on the acquisition path for your users. What it would do: 1. See if the key (absolute_url()) exists in the table, if not create a new record. 2. Increment the counter in the table. You could be fancy about defining what counts as a hit. 3. Return the value associated with the key. I have not actually done this, but it would be my first stab at it. -- Jim Washington Marcus Schopen wrote:
Hi there,
some users would like to have access statistics about each DTML-Document without creating a new FSCounter or ZCounter for each new document.
Is that possible?
Thank you Marcus
participants (3)
-
Jim Washington -
Marcus Schopen -
Tino Wildenhain