[pmwiki-users] Better way to want pagelist limited to numercial values than : ame=[0-9], [0-9][0-9], [0-9][0-9][0-9], [0-9][0-9][0-9][0-9]

Petko Yotov 5ko at 5ko.fr
Sun Aug 25 22:37:38 PDT 2019


You can create a page variable $NumericName in config.php:

   $FmtPV['$NumericName'] = 'is_numeric($name)?"true":"false"';

Then in the pagelist:
   (:pagelist $NumericName=true trail=Group.RecentChanges:)

Petko
-- 
If you upgrade :  http://www.pmwiki.org/Upgrades


On 26/08/2019 01:54, ABClf wrote:
> I need a pagelist limited to pages named with serial/numerical name
> (1, 123, 166358, etc.)
> As of now, my pagelist is like that :
> 
> (:pagelist trail=Group.RecentChanges
> name=[0-9],[0-9][0-9],[0-9][0-9][0-9],[0-9][0-9][0-9][0-9] count=100:)
> 
> Does someone know a better way to write the name argument ? Something
> in the spirit of this perhaps (this one doesn't work) : [numeric] ?



More information about the pmwiki-users mailing list