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 <5...@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
_______________________________________________ pmwiki-devel mailing list pmwiki-devel@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-devel