[pmwiki-users] Page List Template Trouble

Eemeli Aro eemeli at gmail.com
Wed May 12 07:49:54 CDT 2010


On 12 May 2010 15:39, Wordit Ltd <wordituk at googlemail.com> wrote:
> Eemeli's code fixed the group problem, but I still get the actual code
> output appended at the end. This code:
>
> (:pagelist link=Group.Page fmt=#bytitle:)
>
> [[#bytitle]]
> [[{=$Group}/{=$Name}]]
> \\
> [[#bytitleend]]
>
>
> Outputs:
>
> Link1
> Link2
> Link3
> ...
>
> {=$Name}
>
> Why the final "{=$Name}" at the end? This is occurring in pmwiki 2.2.15.

Ah, that's because the pagelist template itself is on the page, and
its contents get displayed as well, and outside pagelist processing
{=$Name} isn't a valid variable.

So try:

(:pagelist link=Group.Page fmt=#bytitle:)

(:if false:)
[[#bytitle]]
[[{=$Group}/{=$Name}]]
\\
[[#bytitleend]]
(:ifend:)

eemeli

> Thanks,
>
> Marcus
>
>
>
> On Wed, May 12, 2010 at 7:35 AM, Eemeli Aro <eemeli at gmail.com> wrote:
>> [[#bytitle]]
>> [[{=$Group}/{=$Name}]]
>> \\
>> [[#bytitleend]]
>



More information about the pmwiki-users mailing list