Loading...
 
Skip to main content
Display the number of hits for certain objects

Plugin Object Hits

Use this wiki plugin to display the number of hits for a wiki page, article, image gallery, file gallery and individual images or files in a gallery. The total number of hits can be displayed or the number of hits over the past x number of days.

Parameters

Display the number of hits for certain objects
Introduced in Tiki 1.
Go to the source code
Preferences required: wikiplugin_objecthits

Parameters Accepted Values Description Default Since
days digits Show the number of hits over the past number of days indicated. Default is to show all hits. 0 1
since text Date since the hits are collected in a format supported by strtotime 10.0
type alpha Object type, such as wiki, file gallery, file, article, etc. Default is wiki. wiki 1
object text For a wiki page, the page name, for other object types: ID number + ? + object title 1

Examples


This code:
Example with no parameters set
Copy to clipboard
{objecthits}


arrow-right.png


Would produce on this site (total hits for this page):

11313

This code:
Another wiki page and days used
Copy to clipboard
{objecthits object="Documentation" days="30"}


arrow-right.png


Would produce on this site (hits on the Documentation page - home page for this site - for the past 30 days):

616284

This code:
Hits for an article
Copy to clipboard
{objecthits object="19?News from doc.tw.o!" type="article"}


arrow-right.png


Would produce on this site (total hits on article ID 19, titled News from doc.tw.o!):

6585

Created by lindon. Last Modification: Wednesday 07 August, 2019 08:46:57 UTC by Yves Kipondo.
Collapse/expand modules below