[pmwiki-users] Hg tweaks...

The Editor editor at fast.st
Thu Feb 1 07:33:04 CST 2007


Just add subname vars to Hg for various uses (esp in ZAP)...

{$n1}, {$n2}, etc.  {$n0} gives the count...

Didn't document it, but the separator can be changed from a hyphen to
whatever you want by setting $hgseparator to some other value before
calling hg.php

Fixed the glitch that occurs when you do not type in the actual
pagename by adding a resolvepagename to the beginning of hg.  I
suspect it may also solve the ZAP problem with clean urls, but haven't
been able to test it yet.

Will upload the changes as soon as PmWiki is back up.

Hope more of you will give this a try.  It is proving to be a very
useful little script.  It makes quite a few really neat things
possible...

Cheers,
Dan


PS.  Still looking for help with a way to create a pagelist that will
return exactly one name for each instance of a subgroup--perhaps by
creating some kind of custom search routine.  Can anyone suggest a way
to do it?

Specifically, if I have pages:

Main-One.A
Main-One.B
Main-Two.A
Main-Two.B

I'd like to be able to get exactly one instance of One and Two.  A
basename pattern?

This has been posted 3-4 times, by at least 2 individuals with no
response.  Surely there is a way to do this...  TIA



More information about the pmwiki-users mailing list