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

Crisses crisses at kinhost.org
Mon Oct 2 14:33:51 CDT 2006


On Oct 2, 2006, at 3:17 PM, Patrick R. Michaud wrote:

> On Mon, Oct 02, 2006 at 03:06:55PM -0400, Crisses wrote:
>> 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
>
> You might want to put this on Site.LocalTemplates to avoid
> upgrade hassles.

Thanks!

>> 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:)
>
> You probably want fmt=#simile here.  Using fmt=simile means
> that it uses the content of the Simile page as the pagelist
> template.

Corrected -- and much better, but still not correct.

>> [[#simile]]
>> * [[{=$FullName}]] - {=$:WAuthor} - {=$:Work}
>> [[#simileend]]
>>
>> I want a link to a page followed by the values for a couple variables
>> from the Data- page.
>
> [[#simile]]
> * [[{=$BaseName}]] - {Data-{=$BaseName}$:WAuthor} - {Data-{= 
> $BaseName}:$Work}
> [[#simileend]]


This, with a correction on :$Work to $:Work produces a webpage list  
that looks like:

Simile.OfMiceAndMen:SteinbeckJohn:AFarRushOf - {Data- 
Simile.OfMiceAndMen:SteinbeckJohn:AFarRushOf$:WAuthor} - {Data- 
Simile.OfMiceAndMen:SteinbeckJohn:AFarRushOf$:Work}

http://similepedia.com/index.php/Searches/Test
data page:
http://similepedia.com/index.php/Data-Simile/ 
OfMiceAndMen:SteinbeckJohn:AFarRushOf
And it looks fine-- I should be calling the $WAuthor and $Work  
variable values in to the list, but it's not interpreting it correctly.

Crisses




More information about the pmwiki-users mailing list