I have set up some page variables<div><div> $FmtPV['$ChordProVersion'] = $RecipeInfo['ChordPro']['Version'];</div><div> $FmtPV['$SongTitle'] = $title;</div><div>I did this in the function (Chord_Parse) that is called by the Markup function.</div>
<div>The variables don't show up on the page, do I need to make something global?</div><div>Or perhaps I need to do something else in addition (eg edit page?)</div><div><br></div><div>thanks</div><div><br></div><div>Simon</div>
<br><div class="gmail_quote">2009/9/24 Petko Yotov <span dir="ltr"><<a href="mailto:5ko@5ko.fr">5ko@5ko.fr</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Wednesday 23 September 2009 12:32:25 Simon wrote:<br>
> I have a recipe (ChordPro) from which I wish to create and return a page<br>
> text variable (eg $:SongTitle}(ie that page would have the PTV usable from<br>
> conditional markup, pagelists etc)<br>
<br>
</div>You can create a "page variable" {$SongTitle} (not page "text" variable), and<br>
also use it in conditionals and in pagelists.<br>
<div class="im"><br>
> Can anyone point me at an exemplar of how this is done.<br>
<br>
</div>There are a couple of examples here :<br>
<a href="http://www.pmwiki.org/wiki/Cookbook/MoreCustomPageVariables" target="_blank">http://www.pmwiki.org/wiki/Cookbook/MoreCustomPageVariables</a><br>
<font color="#888888"><br>
Petko<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>____<br><a href="http://kiwiwiki.co.nz">http://kiwiwiki.co.nz</a><br>
</div>