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

Simon nzskiwi at gmail.com
Sat Sep 26 03:24:05 CDT 2009


I have set up some page variables  $FmtPV['$ChordProVersion'] =
$RecipeInfo['ChordPro']['Version'];
  $FmtPV['$SongTitle'] = $title;
I did this in the function (Chord_Parse) that is called by the Markup
function.
The variables don't show up on the page, do I need to make something global?
Or perhaps I need to do something else in addition (eg edit page?)

thanks

Simon

2009/9/24 Petko Yotov <5ko at 5ko.fr>

> 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
>



-- 
____
http://kiwiwiki.co.nz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-devel/attachments/20090926/b6e987d7/attachment.html 


More information about the pmwiki-devel mailing list