[pmwiki-users] FoxBlog

Hans design5 at softflow.co.uk
Fri Apr 11 03:10:22 CDT 2008


Friday, April 11, 2008, 8:29:42 AM, Maria McKinley wrote:

> Pagenum: (:pagelist group=Blog,-Blog.Blog list=normal fmt=count:)
> .....
> ... (:input text target value="{$:Pagenum}" size=30: ).....

> Now, although the Pagenum variable gets set correctly, this is what
> shows up in the Page Name field:

> "(:pagelist

> and then this outside of the field:

> " size=30:)

Although pagelist ...fmt=count will display the number of matching
pages, this is not taken as the value for the PTV. Instead the markup
is taken as the value, with the result that the markup as value in th
einput field breaks the field (because of the closing :) of the
directive).

I would use a markup expression from cookbook/PowerTools instead of
the pagelist directive. You can use {(pagelist ...)} nmarkup
expression with similar syntax to the (:pagelist :) directive.
And at least in the later Fox you can use it as replacement variable
{$$(pagelist ...)}, which means it will only be evaluated at time of
posting th eform, and not at time of page load.

So use either:

Pagenum: {(pagelist group=Blog,-Blog.Blog list=normal fmt=count)}

or for latest Fox:

(:input text target {$$(pagelist group=Blog,-Blog.Blog list=normal
fmt=count)} size=30 :)




  ~Hans




More information about the pmwiki-users mailing list