PM Wiki Cookbook Realm

Log In

Main Page

Linux Page

Photo Page

Code Page

Count Markup Page

Recipe Index

This PmWIKi recipe is for a method to count blocks within a page. I created simple markup to make it easy to get a count of reference blocks on page. It allows me to count the number comments or entries in blog page.

File: Count Markup 0.2a
Requirements: PHP, PmWiki


Wiki Markup

On the page you would like to count blocks use:

(:Count page=GROUP.PAGE tag=TAGNAME:)

On the page of blocks mark the beginning of each with:

[[#TAGNAME]]

The markup has defaults if the attributes are ommitted which are page set to itself and tag set to [[#item]].

modified: October 22, 2007, at 07:31 PM