[pmwiki-users] Page List Template Trouble

Eemeli Aro eemeli at gmail.com
Wed May 12 00:35:40 CDT 2010


On 12 May 2010 06:18, Wordit Ltd <wordituk at googlemail.com> wrote:
> Can anyone please explain the following two problems which occur with
> the code below:
>
> -------- code --------
>
> (:pagelist link=Group.Page fmt=#bytitle:)
>
> [[#bytitle]]
> [[{=*$Name}]]
> \\
> [[#bytitleend]]
>
> ------------------
> (Note: the template is within the same page.)

Try this:

[[#bytitle]]
[[{=$Group}/{=$Name}]]
\\
[[#bytitleend]]

> 1) After the expected (partially) correct page list it also prints
> "{=Name}" at the end.

You shouldn't use =*, but =

> 2) The links only have the page correct, the group is always the group
> on which the calling page is.

That's because the resulting markup won't be turned into HTML until
you view the page, when the links will be made as if you were trying
to link to pages in the group where the (:pagelist:) is -- hence the
{=$Group} above.

> I tried it on the current stable pmwiki and also an older version,
> both yield the same results.

eemeli



More information about the pmwiki-users mailing list