[pmwiki-users] serial number out of a pagename

Hans design5 at softflow.co.uk
Tue Aug 12 11:11:16 CDT 2008


Tuesday, August 12, 2008, 4:32:08 PM, noskule wrote:

> I build serialized pages with powertools / serialname. What the best way
> to get the number out of the pagename? I want to do a pagevar $SerialNumber.

if you have four-digit serial numbers:

$FmtPV['$SerialNumber'] = 'substr($pagename,-4)';


  ~Hans




More information about the pmwiki-users mailing list