[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]

ABClf languefrancaise at gmail.com
Tue Aug 27 11:23:56 PDT 2019


Well, that's something I couldn't imagine at all ; thank you Petko.

Le lun. 26 août 2019 à 07:37, Petko Yotov <5ko at 5ko.fr> a écrit :
>
> 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