The subsitution directive $$HIT$$ implements a section (page) hit counter.
This page has been accessed 31994 times since Sunday, 22 February 2009 23:07
Hit counts are stored separately to content. By default a file name is generated from the full section name. The hit count file name can be specified as the first parameter to the directive. Different sections have individual comment files (but by specifying the same name as parameter one on multiple pages the hit count files can be shared).
In the default case, the example hit counter above is in section
and the associated comment file is
Dollar symbols represent section forward-slashes. The file name is made ODS-2 compliant if required. It is stored in the site directory. Renaming of a section requires renaming any associated hit count file.
If the first or second parameter is a percentage symbol (%) the $$HIT$$ directive provides the date and time when the hit counter was created (i.e. since). A single percent symbol defaults to the standard VWcms time string (as in the above example).
This page has been accessed $$HIT$$ times since $$HIT$%$$
The percent symbol can be the start of a strftime() or other Time format string.
$$HIT$%A, %e %B %Y$$ would display Sunday, 22 February 2009