[pmwiki-devel] Creating a page text variable in a recipe

Petko Yotov 5ko at 5ko.fr
Wed Sep 23 07:12:13 CDT 2009


On Wednesday 23 September 2009 12:32:25 Simon wrote:
> I have a recipe (ChordPro) from which I wish to create and return a page
> text variable (eg $:SongTitle}(ie that page would have the PTV usable from
> conditional markup, pagelists etc)

You can create a "page variable" {$SongTitle} (not page "text" variable), and 
also use it in conditionals and in pagelists.

> Can anyone point me at an exemplar of how this is done.

There are a couple of examples here :
  http://www.pmwiki.org/wiki/Cookbook/MoreCustomPageVariables

Petko



More information about the pmwiki-devel mailing list