[pmwiki-users] pmwiki-2.2.0-beta10 released (pagelist option vars, basename)

Crisses crisses at kinhost.org
Mon Oct 2 14:06:55 CDT 2006


On Oct 2, 2006, at 1:21 PM, Patrick R. Michaud wrote:

> On Mon, Oct 02, 2006 at 07:06:24AM -0400, The Editor wrote:
>> This will be especially useful when you can pass values into
>> the pagelist template so you could specify which state to check, or
>> which letter of the alphabet.  This saves you from having to have a
>> pagelist template for each state or letter.
>>
>> You mentioned you might try to add this in somewhere in this round of
>> beta's.  I hope it is an easy capability to add.
>
> Now added in 2.2.0-beta10, just released.  The page variable format
> is {$$option} (same as PageListExtension), so that if someone
> does the following pagelist directive:
>
>     (:pagelist group=XYZ fruit=apple:)
>
> then the option parameter values are available inside the
> pagelist template as {$$group} and {$$fruit}.
>
> Also, while I'm on the topic, the changes to the handling of
> page variables has also necessitated a change to {$PageCount},
> {$GroupCount}, and {$GroupPageCount}, as they interfere with
> the relative page variable handling.  So, the new versions are
> now {$$PageCount}, {$$GroupCount}, and {$$GroupPageCount},
> and this adds a nice consistency of being "meta pagevariables"
> like the {$$option} ones.
>
> Pm


Ok, between everything I think I have a bug:

http://similepedia.com/index.php/Site/PageListTemplates

At the bottom I defined  the fmt=#simile
fmt=#simile

Custom to this wiki!

[[#simile]]
* [[{=$FullName}]] - {=$:WAuthor} - {=$:Work}
[[#simileend]]


I want a link to a page followed by the values for a couple variables  
from the Data- page.  Results are that I get the contents of the  
Simile group HomePage?

Results and pagelist test calls on:
http://similepedia.com/index.php/Searches/Test

The two using fmt=simile are the ones that are the problem. I know  
why the others don't work.

(:pagelist $:Work=*mice* group=Data-Simile fmt=simile:)

(:pagelist group=Simile $Title=*mice* fmt=simile:)

Crisses




More information about the pmwiki-users mailing list