[pmwiki-users] pagelist question

Hans design5 at softflow.co.uk
Sat Oct 28 08:40:48 CDT 2006


Saturday, October 28, 2006, 2:25:32 PM, Pico wrote:

> I believe that Pm mentioned in one of his early posts that the colon in
> Attach:filename.ext would make Attach available as a PageTextVariable.
> So, I would try {$:Attach}, generally, and {=$:Attach} in a pagelist
> iteration, and wrap it with whatever else you need in your template:

> [[Attach:{=$:Attach}]]  or
> [[Attach:Cookbook/{=$:Attach}]]  or
> [[Attach:{=$Group}/{=$:Attach}]]  or
> [[Attach:{=$Group}/{$=Name}/{=$:Attach}]]

> Note: If your recipe page contains more than one instance of the same
> PageTextVariable, in this case "Attach:", I believe that only the last
> one gets picked up (that is, the one that appears furthest down on the
> page).

You are right! Attach: is treated as page variable! And only the last
instance is picked up. Well it would be nice if it is not treated as
page variable, I think.
I like to pick up in pagelist the filename after Download:, so using
Attach: as page variable does not work for this.

Hans





More information about the pmwiki-users mailing list