[pmwiki-devel] set up PagetextVariables from recipe ?

marc gmane at auxbuss.com
Mon Jan 8 04:57:26 CST 2007


Christophe David said...
> Is there a ready made solution to change a PageTextVariable from a recipe ?
> 
> Example:
> 
> In a page MyGroup.MyPreferences, I have a PagetextVariable defined with
> (:PreferredLanguage:En:).
> 
> I would like to be able
> 
> 1) to change its value from a recipe (to import data from an external source
> for example)
> 2) to change it from a simple link (not a form button) in any other page: An
> hyperlink "French" would set the PagetextVariable in
> MyGroup.MyPreferencesto "Fr"
> 
> It can of course be done by loading the page in a recipe, replacing whatever
> is needeed and saving it back, but it might be re-inventing the wheel.

Pm hasn't added get and set functionality for page text variables. At 
least, not yet. So the only route would be to DIY, as you suggest.

-- 
Cheers,
Marc




More information about the pmwiki-devel mailing list