[pmwiki-users] Custom views and pagelists not promptly updated

Peter Bowers pbowers at pobox.com
Sat May 2 10:24:31 CDT 2009


On Sat, May 2, 2009 at 3:29 PM, Olaf Marzocchi
<550242083288-0001 at t-online.de> wrote:
> ...
>> Try this:
>>
>> [[#titlesummary]]
>> [[{=$FullName} | {=$title{$View}}]]
>> -> {=$description{$View}} ({=$LastModified})
>> [[#titlesummaryend]]
>>
>> I don't use this view recipe so I can't be sure, but I think that will
>> solve your problem.
>
> Unfortunately not, it seems it cannot read the variable or something.
> With:
> [[{=$FullName} | {=$:title{=$View}}]]
> -> {=$:description{=$View}} ({=$LastModified})
>
> I get in the pagelist:
> {=$:titleit}
> {=$:descriptionit} (02/05/2009 ore 01:11 CEST)

Ah, I see, pagelist doesn't expand variables in the same order/manner
as normal markup.  My bad.

Try this in your template instead:

(:template each:)
* Page={=$FullName}, Title={{=$FullName}$:title{$View}}

I tested it and it works fine.  (See
http://pmwiki.qdk.org/pmwiki.php/Lang/PageList)

It feels very inefficient (it feels like each page will have to be
re-read again), but I think pmwiki's PCache will keep that from being
a problem...

-Peter



More information about the pmwiki-users mailing list