[[PageOutline(2-5,Contents,pullout)]] = Display number of page visits == Description This is a macro that displays how many times a wiki page was displayed. This macro accepts from one to three parameters, of which only the first is required. 1. The first parameter is the wiki page name, of which the visit count is to be displayed. 1. The second parameter determines if displaying the macro should update the specified page visit count. Accepted values of this parameter are: True, False, true, false, 1, 0. Default value is true. 1. The third parameter specifies number of digits for visit count display. If its value is 0 then visit count is displayed as simple text. Default value is 4. In the `trac.ini` configuration file you can specify time after what cookie used to store information about visited pages on client expires in seconds (0 means as long as session lasts): {{{#!ini [visitcounter] expires = 0 }}} == Bugs/Feature Requests Existing bugs and feature requests for VisitCounterMacro are [report:9?COMPONENT=VisitCounterMacro here]. If you have any issues, create a [/newticket?component=VisitCounterMacro new ticket]. [[TicketQuery(component=VisitCounterMacro&group=type,format=progress)]] == Download Download the zipped source from [export:visitcountermacro here]. == Source You can check out VisitCounterMacro from [/svn/visitcountermacro here] using Subversion, or [source:visitcountermacro browse the source] with Trac. == Installation After installing the plugin's egg, enable it in your environment's `trac.ini` configuration file or use WebAdminPlugin to do it for you: {{{#!ini [components] visitcounter.core.* = enabled visitcounter.init.* = enabled }}} Then update your environment using: {{{#!sh $ trac-admin upgrade }}} == Example {{{ [[VisitCounter(WikiStart)]] [[VisitCounter(WikiStart, false)]] [[VisitCounter(WikiStart, True, 3)]] }}} == Screenshot [[Image(visit_counter_screenshot.png)]] == Feedback [[Poll(Are you using the VisitCounterMacro?; Yes, it's useful.; No, it's useless.; No, I don't need it.)]] == Change Log [[ChangeLog(/visitcountermacro, 5)]] == Author/Contributors '''Author:''' [wiki:Blackhex] [[BR]] '''Maintainer:''' [[Maintainer]] [[BR]] '''Contributors:'''