[pmwiki-users] New recipe: Fox

Hans design5 at softflow.co.uk
Tue Dec 19 04:28:17 CST 2006


Monday, December 18, 2006, 6:07:29 PM, Jiri wrote:

> What about to set and update some page-variable FoxLastPostNr and not to
> count the posts ?

I changed fox.php so it keeps a record of posts posted as 'foxcount' in
the page file (not the page text), increasing by one at each post.
I also added an action=foxinit which resets this number to zero.
You need auth 'attr' to be able to use it.

So now the page variables $FoxCount, $FoxCountInc and $FoxCountDec
increase one for each post, and will not go down when posts are
deleted. Posts also get their unique anchor name with this number.
If you need to know the exact number of posts, page variable
$FoxPostCount still counts the posts.

This change should give opportunities to link to or include individual
posts, without fear of duplicated anchor names.


Hans





More information about the pmwiki-users mailing list