Thank for your suggestions and help.<div>The variable $title is calculated from the contents processed within the ChordPro markup, </div><div>and I want to make the value held in $title available in for use outside the ChordPro markup, eg in pagelists etc.</div>
<div>I have added the global declaration to my function. (in front of the lines shown in my example).</div><div>I'm still not seeing a page variable.</div><div>Do I have to tell PmWiki to 'update and save' the page?<br>
thanks again</div><div><br></div><div>Simon</div><div><br><div class="gmail_quote">2009/9/27 Peter Bowers <span dir="ltr"><<a href="mailto:pbowers@pobox.com">pbowers@pobox.com</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 Sat, Sep 26, 2009 at 10:24 AM, Simon <<a href="mailto:nzskiwi@gmail.com">nzskiwi@gmail.com</a>> wrote:<br>
> I have set up some page variables<br>
> $FmtPV['$ChordProVersion'] = $RecipeInfo['ChordPro']['Version'];<br>
> $FmtPV['$SongTitle'] = $title;<br>
> I did this in the function (Chord_Parse) that is called by the Markup<br>
> function.<br>
> The variables don't show up on the page, do I need to make something global?<br>
<br>
</div>Although there may be reason to do this assignment to $FmtPV within a<br>
function called by markup ... it would be fairly complicated and you<br>
would have to carefully judge the order of rules and when the PV was<br>
going to be used and etc. (And by all means $FmtPV would have to be<br>
declared global in your function.)<br>
<br>
Typically, however, you would initialize $FmtPV outside of any<br>
function so that its value is available from then on.<br>
<br>
This is in addition to the necessary changes suggested by DaveG.<br>
<font color="#888888"><br>
-Peter<br>
</font></blockquote></div><br><br clear="all"><br><br>
</div>