[pmwiki-users] Grouping in pagelists

Simon nzskiwi at gmail.com
Thu Oct 23 13:22:47 CDT 2014


Thanks John and Petko.

Both solutions work.
Looking generally is there any possibility of making markup expressions
work inside a pagelist, or is the evaluation order too difficult?

regards



On 24 October 2014 03:34, Petko Yotov <5ko at 5ko.fr> wrote:

> You can define in config.php a PageVariable containing the first 4
> characters of the name:
>
>   $FmtPV['$Name4'] = 'substr($name, 0, 4)';
>
> then use that variable in the pagelist template:
>
>   (:template first {=$Name4}:)
>
> I've enabled it on the Test page you created.
>
> Petko
>
> On 23.10.2014 09:49, Simon wrote:
>
>> Lets say I have a lot of pages in the format yyyy-mm-dd-description.
>>
>> I want to group then by year.
>>
>> Can anyone suggest a way of making
>>
>> (:template first {(substr {=$Name} 0 4)}:)
>>
>> work?
>>
>> See http://www.pmwiki.org/wiki/Test/PageListGrouping or an
>> attempt
>>
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>



-- 
____
http://kiwiwiki.co.nz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20141024/812cf611/attachment.html>


More information about the pmwiki-users mailing list