[pmwiki-users] PTVs & pageindex - was: FoxEdit & Category

Petko Yotov 5ko at 5ko.fr
Thu Jun 18 03:50:33 CDT 2009


On Thursday 18 June 2009 09:11:43 adam overton wrote:
> when typing in the following code (to a page in group Test) ...
>
> 	(:myPtv: [[!Blem]]:)myPtv: {$:myPtv}
>
> 	pages with Category.Blem
> 	(:pagelist group=Test fmt=#simple link=Category.Blem list=all :)
>
> ... and then saving it the first time, the pagelist comes up empty(!)
Hi.

You cannot have in a page such a thing :
  myPtv: {$:myPtv}

You are redefining the myPtv variable with itself.

This caused an endless loop in old versions of PmWiki, and was fixed in 2.2.0 
beta 56. See http://www.pmwiki.org/wiki/PITS/00915 .

In this case, "{$:myPtv}" will and should be empty.


You can have what you expect in two ways :
  myPtv: [[!Blem]]
  this shows exactly what I assume you expect,

or :
  (:myPtv: [[!Blem]]:)
  my Ptv: {$:myPtv} 
  note the space in "my Ptv"

Thanks,
Petko



More information about the pmwiki-users mailing list