BoltWire is a content management system developed by Dan Vis.


Popular Posts

Version 5.11 Released
May 26, 2016

Big Changes Coming Soon...
April 28, 2016

Catching Up
April 6, 2016

Other Sites

Here's some other sites by Dan Vis:

Alexa Echoes
Join my adventures developing for Amazons exciting new voice platform.

Firefly Spot
Personal rambling about new gadgets, technology news, and space travel.

FAST Missions
My ministry hub, with news and updates about our online school.

You can follow him at www.danvis.info.

Page Counter

Extensions > Plugins > Page Counter

Using BoltWire's built in info function, you can create a handy page counter function quite easily. Just put in your skin, footer or some zone:

Page viewed [(info counter field={p} page=info.pagecount)] times...

It stores all your data in one page: info.pagecount, using the page name as a key, and the "counter" info command simply increments that info value by one each time the page is viewed. This gives you a lot of real nice capabilities.

For example:

Gives current page count. Change {p} to view count of another page...
[(info count group=forum* page=info.pagecount)]
Give total number of pages viewed in forum group
[(info sum page=info.pagecount count=20)]
Combined page views of 20 most popular pages.
[(search query=info.pagecount sort={+value} fmt=title order=reverse count=20)]
A report of 20 most popular pages

You can also create counters for specific groups of pages. Suppose you have a blog and only want to track how many page views those pages get. Simply add the following to the footer of your blog group:

<(info counter page=blog.counter field={p} output=false)>

This will create a blog.counter page with a count for how many times each page is viewed. The output=false, means the current count will not be displayed on the page, allowing the function to keep track of page views invisibly, to be displayed elsewhere--perhaps in a blog admin page.