[pmwiki-devel] Accessing new page attributes / property

Petko Yotov 5ko at 5ko.fr
Fri Jan 2 22:53:57 CST 2009


On Saturday 03 January 2009 05:46:24 DaveG wrote:
> Not sure of the term attribute/property, but I'm using this code to set
> an attribute:
> 	$newpage['mine'] = "true";

> I'm trying to access it from a page:
>     (:if ! equal {{=$FullName}$mine} true :)stuff(:ifend:)
>
> The value is set okay, I just can't work out how to access it from a
> wiki page.

You need to also add a PageVariable :
  $FmtPV['$mine'] = '$page["mine"]';

Thanks,
Petko




More information about the pmwiki-devel mailing list